mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
Merge pull request #929 from mitchellh/kitty-alt
terminal: switching alt/primary screen invalidates Kitty image state
This commit is contained in:
@ -238,6 +238,9 @@ pub fn alternateScreen(
|
||||
// Clear our selection
|
||||
self.screen.selection = null;
|
||||
|
||||
// Mark kitty images as dirty so they redraw
|
||||
self.screen.kitty_images.dirty = true;
|
||||
|
||||
if (options.clear_on_enter) {
|
||||
self.eraseDisplay(alloc, .complete, false);
|
||||
}
|
||||
@ -269,6 +272,9 @@ pub fn primaryScreen(
|
||||
// Clear our selection
|
||||
self.screen.selection = null;
|
||||
|
||||
// Mark kitty images as dirty so they redraw
|
||||
self.screen.kitty_images.dirty = true;
|
||||
|
||||
// Restore the cursor from the primary screen
|
||||
if (options.cursor_save) self.restoreCursor();
|
||||
}
|
||||
|
Reference in New Issue
Block a user