mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
terminal: mark kitty images as dirty on resize
This commit is contained in:
@ -2113,6 +2113,9 @@ pub fn resize(self: *Screen, rows: usize, cols: usize) !void {
|
||||
// No resize necessary
|
||||
if (self.rows == rows) return;
|
||||
|
||||
// No matter what we mark our image state as dirty
|
||||
self.kitty_images.dirty = true;
|
||||
|
||||
// If we have the same number of columns, text can't possibly
|
||||
// reflow in any way, so we do the quicker thing and do a resize
|
||||
// without reflow checks.
|
||||
@ -2120,6 +2123,9 @@ pub fn resize(self: *Screen, rows: usize, cols: usize) !void {
|
||||
return;
|
||||
}
|
||||
|
||||
// No matter what we mark our image state as dirty
|
||||
self.kitty_images.dirty = true;
|
||||
|
||||
// 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