Skip to content

Commit 1dcdea9

Browse files
committed
fix: renderer: use the correct size when resizing the screen
1 parent 101fd11 commit 1dcdea9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cursed_renderer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ func (s *cursedRenderer) resize(w, h int) {
526526
// We need to reset the touched lines buffer to match the new height.
527527
s.buf.Touched = nil
528528

529-
s.scr.Resize(s.width, s.height)
530529
s.width, s.height = w, h
530+
s.scr.Resize(s.width, s.height)
531531
s.mu.Unlock()
532532
}
533533

0 commit comments

Comments
 (0)