diff options
Diffstat (limited to 'src/look.zig')
| -rw-r--r-- | src/look.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/look.zig b/src/look.zig index 796eb5bb..8318973b 100644 --- a/src/look.zig +++ b/src/look.zig @@ -1340,7 +1340,9 @@ pub fn lookAt(p: *Pardes, id: usize, operand: []const u8) void { if (found != .none) clearNavigationSelection(p, pane); switch (found) { .none => { - if (pane.image != null or pane.body.mode == .tty) return; + // A raw terminal's clicks are its program's; a look written over + // 9P is no keyboard input, and searches whatever the key mode. + if (pane.image != null or (pane.body.mode == .tty and !p.fs.serving)) return; if (p.settings.look_word == .search and pane.file != null) return lookWord(p, id, pane, trimmed); const rows = runSearch(p, id, trimmed, .text, .cursor, false) catch |err| { p.reportError(id, "search", err); |
