aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-30 18:16:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-30 18:16:12 +0000
commite673bd4ab03d8faca2282a1bc134455458b8d3fe (patch)
tree1cb7f2fdd891183a8a68e81e8d01ae84293ce404 /selection.c
parentosc: xparsecolor: parse 'legacy' colors (diff)
parentsearch: ctrl+s searches forward (diff)
Merge branch 'scrollback-search'
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index 45f970f2..c4991906 100644
--- a/selection.c
+++ b/selection.c
@@ -20,7 +20,10 @@
bool
selection_enabled(const struct terminal *term)
{
- return term->mouse_tracking == MOUSE_NONE || term->kbd.shift;
+ return
+ term->mouse_tracking == MOUSE_NONE ||
+ term->kbd.shift ||
+ term->is_searching;
}
bool