mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-23 20:26:09 +03:00
on resize, if rows increasing, handle that first
This commit is contained in:
@ -923,6 +923,9 @@ pub fn resize(self: *Screen, rows: usize, cols: usize) !void {
|
||||
return;
|
||||
}
|
||||
|
||||
// We grow rows first so we can make space for more reflow
|
||||
if (rows > self.rows) try self.resizeWithoutReflow(rows, cols);
|
||||
|
||||
// If our columns increased, we alloc space for the new column width
|
||||
// and go through each row and reflow if necessary.
|
||||
if (cols > self.cols) {
|
||||
|
Reference in New Issue
Block a user