summaryrefslogtreecommitdiff
path: root/src/mouse.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mouse.zig')
-rw-r--r--src/mouse.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mouse.zig b/src/mouse.zig
index beb2e624..0ec20df2 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -715,10 +715,9 @@ fn dispatchPointerBuiltin(
const arg = p.chord_arg;
p.chord_arg = null;
defer if (arg) |a| p.gpa.free(a);
- const operand = text orelse {
- if (gesture) |g| _ = reportGesture(p, id, cmd, "", g.on_tag, g.operand, arg != null);
- return;
- };
+ // A click that takes no text does nothing, and tells an event reader
+ // nothing, as acme's look3 and execute return on an empty expansion.
+ const operand = text orelse return;
if (gesture) |g| if (reportGesture(p, id, cmd, operand, g.on_tag, g.operand, arg != null)) return;
exec.runBuiltin(p, cmd, id, "", exec.withArg(p, operand, arg));
}