From 5db035cc3ac5ba418abbbd49dc1d0112594a488a Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Sat, 9 Sep 2023 14:54:11 +0200 Subject: [PATCH] Add missing comma for keyword insertion at end --- javascript/tagAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index abe9a04..20e3283 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -520,7 +520,7 @@ async function insertTextAtCursor(textArea, result, tagword, tabCompletedWithout if (TAC_CFG.modelKeywordLocation === "Start of prompt") newPrompt = `${keywords}, ${newPrompt}`; // Insert keywords else if (TAC_CFG.modelKeywordLocation === "End of prompt") - newPrompt = `${newPrompt}${keywords}`; // Insert keywords + newPrompt = `${newPrompt}, ${keywords}`; // Insert keywords else { let keywordStart = prompt[editStart - 1] === " " ? editStart - 1 : editStart; newPrompt = prompt.substring(0, keywordStart) + `, ${keywords} ${insert}` + prompt.substring(editEnd);