Merge branch 'main' into feature-sorting

This commit is contained in:
DominikDoom
2023-09-13 21:56:29 +02:00
3 changed files with 10 additions and 4 deletions

View File

@@ -1009,7 +1009,7 @@ async function autocomplete(textArea, prompt, fixedTag = null) {
tagword = tagword.toLowerCase().replace(/[\n\r]/g, "");
// Process all parsers
let resultCandidates = await processParsers(textArea, prompt);
let resultCandidates = (await processParsers(textArea, prompt))?.filter(x => x.length > 0);
// If one ore more result candidates match, use their results
if (resultCandidates && resultCandidates.length > 0) {
// Flatten our candidate(s)