From b103e31727b8084a2c9aa21e47900c0187b92c35 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 25 Jul 2024 21:31:49 -0700 Subject: [PATCH] terminal: isBetween needs to fall through for matching y on top page Regressed in 9198adcba3477ab521cf215f1f652813e32e1951 This was causing Kitty image intersection to break. --- src/terminal/PageList.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/PageList.zig b/src/terminal/PageList.zig index 6aa6064e5..8a5713333 100644 --- a/src/terminal/PageList.zig +++ b/src/terminal/PageList.zig @@ -3335,7 +3335,7 @@ pub const Pin = struct { // Otherwise our y is the same as the top y, so we need to // check the x coordinate. assert(self.y == top.y); - return self.x >= top.x; + if (self.x < top.x) return false; } if (self.page == bottom.page) { // Our page is the bottom page so we're between the top and