summaryrefslogtreecommitdiff
path: root/src/mouse.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mouse.zig')
-rw-r--r--src/mouse.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mouse.zig b/src/mouse.zig
index ec5560d0..3400afbe 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -1083,6 +1083,15 @@ pub fn dispatchPointerBuiltin(
// 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)) return;
+ // B2 anywhere on a query pane's line 1 is the line: run again, whatever
+ // word of it was clicked (Query.zig).
+ if (gesture) |g| if (!g.on_tag and g.operand.row == 0 and cmd == config.exec_cmd) if (p.panes[id]) |pane| if (pane.query) |q| {
+ p.gpa.free(q.asked);
+ q.asked = &.{};
+ q.frozen = false;
+ panes.Query.produceAll(p, false);
+ return;
+ };
// A middle click on a body is the exec a bound REPL may take.
exec.runBuiltinFrom(p, cmd, id, "", exec.withArg(p, operand, arg), gesture != null and !gesture.?.on_tag);
}