terminal: switching alt/primary screen invalidates Kitty image state

This commit is contained in:
Mitchell Hashimoto
2023-11-21 08:37:41 -08:00
parent 9cafd17e86
commit fd84178cc7

View File

@@ -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();
}