We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b15ef commit 76456beCopy full SHA for 76456be
packages/prompts/src/note.ts
@@ -23,7 +23,7 @@ const wrapWithFormat = (message: string, width: number, format: NoteOptions["for
23
const wrapMsg = wrapAnsi(message, width).split("\n");
24
const maxWidthNormal = wrapMsg.reduce((sum, ln) => Math.max(strip(ln).length, sum), 0);
25
const maxWidthFormat = wrapMsg.map(format).reduce((sum, ln) => Math.max(strip(ln).length, sum), 0);
26
- const wrapWidth = maxWidthNormal - (maxWidthFormat - maxWidthNormal);
+ const wrapWidth = width - (maxWidthFormat - maxWidthNormal);
27
return wrapAnsi(message, wrapWidth);
28
}
29
0 commit comments