Write screen.height + 1 lines

master
Devansh Agarwal 3 years ago
parent 69865574e8
commit 5ed19c5d61
  1. 2
      screen.go

@ -232,7 +232,7 @@ func (screen *Screen) draw(str string, offset bool) {
if row <= len(allLines) && if row <= len(allLines) &&
row > screen.headerLine { row > screen.headerLine {
screen.DrawLineFlush(0, row-screen.offset, allLines[row], false) screen.DrawLineFlush(0, row-screen.offset, allLines[row], false)
} else if row > len(allLines) { } else if row > len(allLines) + 1 {
row = len(allLines) row = len(allLines)
} }
} }

Loading…
Cancel
Save