diff options
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exec.zig b/src/exec.zig index 5b0eb204..7248632b 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -182,7 +182,9 @@ pub fn operandAt(p: *Pardes, pane: *Pane, clicked: Pane.Sel, borrow: bool, for_l result.text = edit.currentSelText(p, pane); return result; } - if (pane.body.msel.active and row >= @min(pane.body.msel.r0, pane.body.msel.r1) and + // A query pane's line selection is its current row's mark, not a + // selection made: a click on that row takes its word, as on any row. + if (pane.body.msel.active and pane.query == null and row >= @min(pane.body.msel.r0, pane.body.msel.r1) and row <= @max(pane.body.msel.r0, pane.body.msel.r1)) { result.text = edit.currentSelText(p, pane); |
