Skip to content

Commit

Permalink
Add missing comma for keyword insertion at end
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDoom committed Sep 9, 2023
1 parent 90cf314 commit 5db035c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/tagAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5db035c

Please sign in to comment.