Skip to content

Commit

Permalink
Update wrap.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas authored Apr 1, 2024
1 parent 1f1d7e4 commit d5b68c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exp/term/ansi/wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func Wrap(s string, limit int, breakpoints string) string {

addWord := func() {
addBpoint()
if wordLen > 0 {
if curWidth > 0 {
// We use wordLen to determine if we have a word to add
// to the buffer. If wordLen is 0, we don't add spaces at the
// beginning of a line.
Expand Down

0 comments on commit d5b68c6

Please sign in to comment.