From 33131ff5eb7e3c98bd86d5284f0e27391ea14088 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Jul 2024 14:06:39 +0530 Subject: [PATCH] ... --- tools/tui/loop/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tui/loop/run.go b/tools/tui/loop/run.go index b274f1eb4..89172adc7 100644 --- a/tools/tui/loop/run.go +++ b/tools/tui/loop/run.go @@ -102,7 +102,7 @@ func (self *Loop) handle_csi(raw []byte) (err error) { s := &self.screen_size s.updated = true s.HeightCells, s.WidthCells = uint(parsed[0]), uint(parsed[1]) - s.HeightPx, s.WidthPx = uint(parsed[2]), uint(parsed[2]) + s.HeightPx, s.WidthPx = uint(parsed[2]), uint(parsed[3]) s.CellWidth = s.WidthPx / s.WidthCells s.CellHeight = s.HeightPx / s.HeightCells if self.OnResize != nil { @@ -300,6 +300,7 @@ func (self *Loop) on_SIGPIPE() error { } func (self *Loop) on_SIGWINCH() error { + self.update_screen_size() if self.seen_inband_resize { return nil }