[autocomplete] don't try to complete a minus by itself, see #1028

This commit is contained in:
Shish 2024-02-12 13:25:06 +00:00
parent f3772236f9
commit 331a724b6e

View file

@ -36,7 +36,7 @@ function updateCompletions(element) {
clearTimeout(element.completer_timeout);
element.completer_timeout = null;
}
if(word === '') {
if(word === '' || word === '-') {
element.completions = {};
renderCompletions(element);
}