selection: allow selection when mouse tracking is enabled *if* shift is pressed

This commit is contained in:
Daniel Eklöf 2019-08-08 17:58:24 +02:00
parent 2a8962fd1a
commit 28a8b18c5e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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