print: fix bounds for word wrap
Let words go all the way to the end Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
parent
7db582b4f3
commit
378984bd87
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ pub fn print(self: Window, segments: []Segment, opts: PrintOptions) !bool {
|
|||
// break lines when we can't fit this word, and the word isn't longer
|
||||
// than our width
|
||||
const word_width = self.gwidth(word.bytes);
|
||||
if (word_width + col >= self.width and word_width < self.width) {
|
||||
if (word_width + col > self.width and word_width < self.width) {
|
||||
row += 1;
|
||||
col = 0;
|
||||
wrapped = true;
|
||||
|
|
Loading…
Reference in a new issue