1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-11 14:25:57 +03:00

allow multiple placements for p=0

This commit is contained in:
jonboh 2024-02-11 10:37:40 +01:00
parent 47f647cadc
commit 81b3b69520

View File

@ -101,7 +101,11 @@ impl TerminalState {
verbosity
);
if image_id != 0 {
self.kitty_remove_placement(image_id, placement.placement_id);
if let Some(place_id) = placement.placement_id {
if place_id != 0 {
self.kitty_remove_placement(image_id, placement.placement_id);
}
}
}
let img = Arc::clone(self.kitty_img.id_to_data.get(&image_id).ok_or_else(|| {
anyhow::anyhow!(