aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-08 15:58:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-08 15:58:24 +0000
commit28a8b18c5e4059a250f1bc439ceabe96ad330ed1 (patch)
treedf7ccf6ad4ea2be19619aadedb1b7a0f4bdcebb7 /selection.c
parentrender: selection may not be "ordered", since it may not have been finalized (diff)
selection: allow selection when mouse tracking is enabled *if* shift is pressed
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index 7c3d4826..586b1c3d 100644
--- a/selection.c
+++ b/selection.c
@@ -20,8 +20,7 @@
static bool
selection_enabled(const struct terminal *term)
{
- return (term->mouse_tracking != MOUSE_DRAG &&
- term->mouse_tracking != MOUSE_MOTION);
+ return term->mouse_tracking == MOUSE_NONE || term->kbd.shift;
}
bool