diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 00:12:27 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:00:58 -0300 |
| commit | 86b873a851820485c5720463195ff98466ddc315 (patch) | |
| tree | 3236c904a30be8ce8a66622c9c04bd22ffb047ea /src/mouse.zig | |
| parent | fe66ef6a44a38465c12e6a57c6d40af4d33ca7d9 (diff) | |
| download | pardes-86b873a851820485c5720463195ff98466ddc315.tar.gz pardes-86b873a851820485c5720463195ff98466ddc315.zip | |
events: noteAction answers nothing, as all ten callers threw its bool away, and formats its record itself; noteFollow was noteAction at 0 0 0, so mouse.zig's two calls name noteAction; formatRecord, Action.char and Action.fromChar, one or two callers each, go
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/mouse.zig')
| -rw-r--r-- | src/mouse.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mouse.zig b/src/mouse.zig index cb218a36..02e3b6a5 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -1044,14 +1044,14 @@ pub fn reportRange( } else if (chord_arg != null) flag |= ctlfs.events.flag_chorded; // Taken whether or not this process's server has the reader: the // session's said it has (a replica's has none). - _ = ctlfs.events.noteAction(p, id, action, range.q0, range.q1, flag, text); + ctlfs.events.noteAction(p, id, action, range.q0, range.q1, flag, text); // A chorded exec's argument follows as two records, its text and where // it came from (`file:#q0,#q1`, empty when that is not known), as acme // sends them (exec.c:182-188); the pane keeps it for the write-back. if (chord_arg) |a| { - ctlfs.events.noteFollow(p, id, action, a); + ctlfs.events.noteAction(p, id, action, 0, 0, 0, a); var where: [512]u8 = undefined; - ctlfs.events.noteFollow(p, id, action, exec.heldSelectionPlace(p, id, &where) orelse ""); + ctlfs.events.noteAction(p, id, action, 0, 0, 0, exec.heldSelectionPlace(p, id, &where) orelse ""); const pf = &scripted.fs; if (pf.chord_arg) |old| p.gpa.free(old); pf.chord_arg = p.gpa.dupe(u8, a) catch null; |
