terminal: kitty limits only if kitty graphics being built

This commit is contained in:
Mitchell Hashimoto
2025-11-14 15:52:59 -08:00
parent 4ba00dbe89
commit 2452026ff3

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