Fix for not scrolling to all lines, changing screen.max calculation.

master
root 2 years ago
parent 5ed19c5d61
commit bcc5893957
  1. 2
      screen.go

@ -208,7 +208,7 @@ func (screen *Screen) draw(str string, offset bool) {
allLines = strings.Split(str, "\n") allLines = strings.Split(str, "\n")
if offset { if offset {
screen.max = len(allLines) - screen.height screen.max = len(allLines) - screen.height + screen.headerLine
} }
// Write the lines being updated. // Write the lines being updated.

Loading…
Cancel
Save