Skip to content

Commit

Permalink
fix(cellbuf): clearBottom should move to the last line of the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Feb 4, 2025
1 parent 4ae3b68 commit 7fdc09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellbuf/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ func (s *Screen) clearBottom(total int, force bool) (top int) {
}

if force || top < total {
s.move(0, top)
s.move(0, top-1) // top is 1-based
s.clearToBottom(blank)
if !s.opts.AltScreen {
// Move to the last line of the screen
Expand Down

0 comments on commit 7fdc09e

Please sign in to comment.