Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanyMonk committed Jun 23, 2023
1 parent b13809d commit 6b5c27d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions click_repl/_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def _get_completion_for_cmd_args(
opts = param.opts + param.secondary_opts

if (self.shortest_only
and not incomplete # just typed a space
and args[-1] not in opts # not selecting a value for a longer version of this option
):
and not incomplete # just typed a space
# not selecting a value for a longer version of this option
and args[-1] not in opts):
opts = [min(opts, key=len)]

for option in opts:
Expand Down

0 comments on commit 6b5c27d

Please sign in to comment.