Fix argument autocompleter bug (#97)

This commit is contained in:
Szymon Borecki
2023-08-26 19:24:41 +02:00
parent 86fcaa3d56
commit 5122246072
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ class ArgparseCompleter(Completer):
def get_completions(self, document, complete_event):
text = document.text_before_cursor
word_before_cursor = document.get_word_before_cursor()
word_before_cursor = document.text_before_cursor.split(' ')[-1]
_, _, suggestions = self.check_tokens(list(), text.split())