From a1e8a59aa3cc1d962ba42b7f525d4cfb8b4fa679 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 9 Mar 2024 13:35:45 -0800 Subject: [PATCH] terminal: correct cols/rows order --- src/terminal/Terminal.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index 94d33f734..c1e9b929c 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -2050,17 +2050,17 @@ pub fn resize( if (self.active_screen == .primary) { self.clearPromptForResize(); if (self.modes.get(.wraparound)) { - try self.screen.resize(rows, cols); + try self.screen.resize(cols, rows); } else { - try self.screen.resizeWithoutReflow(rows, cols); + try self.screen.resizeWithoutReflow(cols, rows); } - try self.secondary_screen.resizeWithoutReflow(rows, cols); + try self.secondary_screen.resizeWithoutReflow(cols, rows); } else { - try self.screen.resizeWithoutReflow(rows, cols); + try self.screen.resizeWithoutReflow(cols, rows); if (self.modes.get(.wraparound)) { - try self.secondary_screen.resize(rows, cols); + try self.secondary_screen.resize(cols, rows); } else { - try self.secondary_screen.resizeWithoutReflow(rows, cols); + try self.secondary_screen.resizeWithoutReflow(cols, rows); } }