From 8cd7fd38d4709f96f2dee38a2ff90137a41380b2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Apr 2021 00:28:42 +0100 Subject: [PATCH] js: Handle first shift selection of count correctly Signed-off-by: Ian Jackson --- templates/script.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index 685744a7..ee78263f 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -920,7 +920,8 @@ function mouse_find_predicate( if (i == 0) { held = p.held; if (held == us && !allow_for_deselect) held = null; - } else if (held == us) { + } + if (held == us) { // user is going to be deselecting if (p.held != us) { // skip ones we don't have -- 2.30.2