terminal/kitty: do not render blank virtual placement cells

This commit is contained in:
Mitchell Hashimoto
2024-07-29 14:52:09 -07:00
parent 39b915ac25
commit 0c81ca44b8
2 changed files with 10 additions and 0 deletions

View File

@@ -1694,6 +1694,9 @@ fn prepKittyVirtualPlacement(
return;
};
// If our placement is zero sized then we don't do anything.
if (rp.dest_width == 0 or rp.dest_height == 0) return;
const viewport: terminal.point.Point = t.screen.pages.pointFromPin(
.viewport,
rp.top_left,