diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 19:42:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 16fe974c7426925f1b7ffc516f149cc1f4ffa390 (patch) | |
| tree | 1a7cbbfb01cbc75358a8582e08cca0351caaf0a4 | |
| parent | e0b3f11f008e54174d5169147b8cf5dac56e915a (diff) | |
| download | pardes-16fe974c7426925f1b7ffc516f149cc1f4ffa390.tar.gz pardes-16fe974c7426925f1b7ffc516f149cc1f4ffa390.zip | |
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 <[email protected]>
| -rw-r--r-- | src/pardes.zig | 2 |
1 files changed, 2 insertions, 0 deletions
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. |
