From 86b873a851820485c5720463195ff98466ddc315 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:12:27 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/mouse.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mouse.zig') 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; -- cgit v1.3