mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
terminal: correct cols/rows order
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user