From 16fe974c7426925f1b7ffc516f149cc1f4ffa390 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 19:42:13 -0300 Subject: A key between two clicks makes them two clicks, not a double-click A double-click is two clicks with nothing between them; a click, some typing and a click at the same cell within half a second selected a word, and snapshot scripts that did that came out by timing. A key now forgets the last click. Co-Authored-By: Claude Opus 5.5 --- src/pardes.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/pardes.zig b/src/pardes.zig index a232c9c6..55c8de8e 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -5286,6 +5286,8 @@ pub const Pardes = struct { } fn handleKey(p: *Pardes, key: Key) void { + // A double-click is two clicks with nothing between them. + p.last_click = null; if (p.macro.recording != 0 and p.macro.replaying == 0) Macro.append(&p.macro.recorded, p.gpa, key); // A question waiting on a pane takes the next key, whatever mode the // pane or a header edit is in: that key is its answer. -- cgit v1.3