Skip to content

Commit

Permalink
Fix auto-complete with trailing space #1294
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Nov 8, 2024
1 parent 454b728 commit f9946f1
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 @@ -215,7 +215,7 @@ def check_completion(self):
self._popup.setItemDelegate(self._lora_delegate)
else:
# fall through to tag search
self._completion_prefix = prefix = self._current_text(separators="()>,\n").strip()
self._completion_prefix = prefix = self._current_text(separators="()>,\n").lstrip()
name = prefix.replace("\\(", "(").replace("\\)", ")")
if not name.startswith("<") and len(name) > 2:
self._completer.setModel(_tag_model)
Expand Down

0 comments on commit f9946f1

Please sign in to comment.