terminal: isBetween needs to fall through for matching y on top page

Regressed in 9198adcba3477ab521cf215f1f652813e32e1951

This was causing Kitty image intersection to break.
This commit is contained in:
Mitchell Hashimoto
2024-07-25 21:31:49 -07:00
parent 16d0df0ba7
commit b103e31727

View File

@ -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