Skip to content

Commit 1dd61a6

Browse files
committed
Fix an issue where lines could incorrectly wrap around.
1 parent 0cac194 commit 1dd61a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/canvas.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ func (c *Canvas) getLines(
512512
currentLine := Line{orientation: o}
513513
lastSeenRune := ' '
514514

515-
for idx := range ci(c.Width, c.Height) {
515+
for idx := range ci(c.Width+1, c.Height+1) {
516516
r := c.runeAt(idx)
517517

518518
isSegment := r == segment

0 commit comments

Comments
 (0)