[autocomplete] check for completions with and without colons, fixes #1018

This commit is contained in:
Shish 2024-01-21 10:51:43 +00:00
parent 37ceebdabd
commit cd79e4879d

View file

@ -98,7 +98,7 @@ function renderCompletions(element) {
(key) => {
let k = key.toLowerCase();
let w = word.toLowerCase();
return k.split(':').some((k) => k.startsWith(w))
return (k.startsWith(w) || k.split(':').some((k) => k.startsWith(w)))
}
).slice(0, 100).forEach((key, i) => {
let value = completions[key];