terminal: kitty limits only if kitty graphics being built

pull/9594/head
Mitchell Hashimoto 2025-11-14 15:52:59 -08:00
parent 4ba00dbe89
commit 2452026ff3
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 4 additions and 1 deletions

View File

@ -2614,7 +2614,10 @@ pub fn switchScreen(self: *Terminal, key: ScreenSet.Key) !?*Screen {
// Inherit our Kitty image storage limit from the primary
// screen if we have to initialize.
.kitty_image_storage_limit = primary.kitty_images.total_limit,
.kitty_image_storage_limit = if (comptime build_options.kitty_graphics)
primary.kitty_images.total_limit
else
0,
},
);
};