Skip to content

Commit

Permalink
fix: message renders repeatedly when text spans lines (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Jul 22, 2022
1 parent 783ce82 commit edc49ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/lib/utils.ts
Expand Up @@ -12,4 +12,5 @@ export const breakLines = (content: string, width: number): string =>
.split('\n')
// @ts-expect-error broken type check from library
.map((line) => wrapAnsi(line, width, { trim: false, hard: true }).split('\n'))
.flat()
.join('\n');

0 comments on commit edc49ce

Please sign in to comment.