summaryrefslogtreecommitdiff
path: root/core/Pick.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Pick.zig')
-rw-r--r--core/Pick.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Pick.zig b/core/Pick.zig
index 3bab0970..e19866d3 100644
--- a/core/Pick.zig
+++ b/core/Pick.zig
@@ -149,10 +149,11 @@ pub fn deinit(pk: *Pick, gpa: std.mem.Allocator) void {
/// Whether a search a builtin asks for from pane `id` is a picker in the
/// tag (SPEC ยง14.3 phase 4): in a session whose jumps walk, from the
-/// keyboard or a click, never a script's (a 9P write's: the query pane,
-/// whose rows it reads back, and whose `not found` it hears).
+/// keyboard or a click (kbdin's and mousein's too), never a script's word
+/// (a 9P exec's: the query pane, whose rows it reads back, and whose `not
+/// found` it hears).
pub fn asked(p: *const Pardes) bool {
- return p.settings.jumps == .walk and !p.fs.serving;
+ return p.settings.jumps == .walk and (!p.fs.serving or p.fs.typed);
}
/// Picker `id`, kept or live.