mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Suggestion autocomplete function now returns full suggestion, Textual calculates suffix
This commit is contained in:
@@ -24,7 +24,7 @@ def word_autocompleter(value: str) -> str | None:
|
||||
# word completions
|
||||
for word in words:
|
||||
if word.startswith(value):
|
||||
return word[len(value) :]
|
||||
return word
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user