mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
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:
@ -3335,7 +3335,7 @@ pub const Pin = struct {
|
|||||||
// Otherwise our y is the same as the top y, so we need to
|
// Otherwise our y is the same as the top y, so we need to
|
||||||
// check the x coordinate.
|
// check the x coordinate.
|
||||||
assert(self.y == top.y);
|
assert(self.y == top.y);
|
||||||
return self.x >= top.x;
|
if (self.x < top.x) return false;
|
||||||
}
|
}
|
||||||
if (self.page == bottom.page) {
|
if (self.page == bottom.page) {
|
||||||
// Our page is the bottom page so we're between the top and
|
// Our page is the bottom page so we're between the top and
|
||||||
|
Reference in New Issue
Block a user