Skip to content

Commit

Permalink
Open auto-complete only if there are at least 3 characters _excluding…
Browse files Browse the repository at this point in the history
…_ trailing space #1417
  • Loading branch information
Acly committed Nov 29, 2024
1 parent 89697ad commit 9902368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_diffusion/ui/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def check_completion(self):
# fall through to tag search
self._completion_prefix = prefix = self._current_text(separators="()>,\n").lstrip()
name = prefix.replace("\\(", "(").replace("\\)", ")")
if not name.startswith("<") and len(name) > 2:
if not name.startswith("<") and len(name.rstrip()) > 2:
self._completer.setModel(_tag_model)
self._popup.setItemDelegate(TagCompleterDelegate())
self._completion_suffix = ""
Expand Down

0 comments on commit 9902368

Please sign in to comment.