Skip to content

Commit

Permalink
Merge pull request #6 from pymodbus-dev/arg-completions
Browse files Browse the repository at this point in the history
Don't raise error when there are no argument completions
  • Loading branch information
dhoomakethu authored Feb 19, 2024
2 parents 55565df + a3b5fe7 commit dc3ae8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymodbus_repl/client/completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def get_completions(self, document, complete_event):

if " " in text:
command = self.arg_completions(words, word_before_cursor)
if not command:
return
commands = list(command.get_completion())
commands = list(
filter(lambda cmd: not (any(cmd in x for x in words)), commands)
Expand Down

0 comments on commit dc3ae8c

Please sign in to comment.