Skip to content

Commit

Permalink
Fix incorrect overflow detection when --wrap is set
Browse files Browse the repository at this point in the history
Fix #4083
  • Loading branch information
junegunn committed Nov 11, 2024
1 parent 20c7dcf commit 3ec035c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/chars.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,5 @@ func (chars *Chars) Lines(multiLine bool, maxLines int, wrapCols int, wrapSignWi
}
}

return wrapped, false
return wrapped, overflow
}

0 comments on commit 3ec035c

Please sign in to comment.