terminal: correct cols/rows order

This commit is contained in:
Mitchell Hashimoto
2024-03-09 13:35:45 -08:00
parent ea51e9bca5
commit a1e8a59aa3

View File

@ -2050,17 +2050,17 @@ pub fn resize(
if (self.active_screen == .primary) { if (self.active_screen == .primary) {
self.clearPromptForResize(); self.clearPromptForResize();
if (self.modes.get(.wraparound)) { if (self.modes.get(.wraparound)) {
try self.screen.resize(rows, cols); try self.screen.resize(cols, rows);
} else { } 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 { } else {
try self.screen.resizeWithoutReflow(rows, cols); try self.screen.resizeWithoutReflow(cols, rows);
if (self.modes.get(.wraparound)) { if (self.modes.get(.wraparound)) {
try self.secondary_screen.resize(rows, cols); try self.secondary_screen.resize(cols, rows);
} else { } else {
try self.secondary_screen.resizeWithoutReflow(rows, cols); try self.secondary_screen.resizeWithoutReflow(cols, rows);
} }
} }