Suggestion autocomplete function now returns full suggestion, Textual calculates suffix

This commit is contained in:
Darren Burns
2022-05-20 15:29:24 +01:00
parent 4c03fb0348
commit 4a4841d0db
3 changed files with 19 additions and 12 deletions

View File

@@ -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