aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-27 18:57:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-27 18:57:58 +0000
commit58d0657a97d9e9f7c31ac7306ba7e2912821ebb2 (patch)
tree0fb5bf8bdbb38c8419284e04eafd21fe877e5b75 /selection.c
parentsearch: cancel selection and clear match stats when we don't match (diff)
selection: allow selections while searching scrollback
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