From 28a8b18c5e4059a250f1bc439ceabe96ad330ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 8 Aug 2019 17:58:24 +0200 Subject: [PATCH] selection: allow selection when mouse tracking is enabled *if* shift is pressed --- selection.c | 3 +-- 1 file changed, 1 insertion(+), 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