From a6d3d5194575b8292a970b38791951fe1e1f6c80 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 10 Oct 2023 09:35:11 -0700 Subject: [PATCH] core: mouse selection when moving left before half-way point If you have a cell "M" and you click before the mid-point of M on the left side and then drag left, we should not select "M". --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{