diff --git a/src/Surface.zig b/src/Surface.zig index e6cd409f3..8d6c68a69 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -1853,7 +1853,7 @@ fn dragLeftClickSingle( // - Inverse logic for a point after the start. const click_point = self.mouse.left_click_point; const start: terminal.point.ScreenPoint = if (screen_point.before(click_point)) start: { - if (self.mouse.left_click_xpos > cell_xboundary) { + if (cell_start_xpos >= cell_xboundary) { break :start click_point; } else { break :start if (click_point.x > 0) terminal.point.ScreenPoint{