From 331a724b6e425ae267515b56a520c52c84bb59d2 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 12 Feb 2024 13:25:06 +0000 Subject: [PATCH] [autocomplete] don't try to complete a minus by itself, see #1028 --- ext/autocomplete/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/autocomplete/script.js b/ext/autocomplete/script.js index 5c391439..6c26fa36 100644 --- a/ext/autocomplete/script.js +++ b/ext/autocomplete/script.js @@ -36,7 +36,7 @@ function updateCompletions(element) { clearTimeout(element.completer_timeout); element.completer_timeout = null; } - if(word === '') { + if(word === '' || word === '-') { element.completions = {}; renderCompletions(element); }