Merge pull request #929 from mitchellh/kitty-alt

terminal: switching alt/primary screen invalidates Kitty image state
This commit is contained in:
Mitchell Hashimoto
2023-11-21 08:40:51 -08:00
committed by GitHub

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