mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-01-26 11:09:54 +00:00
Fix show all condition
This commit is contained in:
@@ -680,10 +680,9 @@ async function autocomplete(textArea, prompt, fixedTag = null) {
|
||||
umiPreviousTags = umiTags;
|
||||
|
||||
// Show all condition
|
||||
let currentSubPrompt = umiSubPrompts.find(x => x[0].includes(tagword[0]))[0];
|
||||
let showAll = currentSubPrompt.endsWith("[") || currentSubPrompt.endsWith("[--") || currentSubPrompt.endsWith("|");
|
||||
let showAll = tagword.endsWith("[") || tagword.endsWith("[--") || tagword.endsWith("|");
|
||||
|
||||
console.log(currentSubPrompt, umiTags, diff, tagCountChange)
|
||||
console.log(tagword, umiTags, diff, tagCountChange)
|
||||
|
||||
// Exit early if the user closed the bracket manually
|
||||
if ((!diff || diff.length === 0 || (diff.length === 1 && tagCountChange < 0)) && !showAll) {
|
||||
|
||||
Reference in New Issue
Block a user