This commit is contained in:
Kovid Goyal 2021-11-28 10:23:32 +05:30
parent 3d76c916a5
commit cb09ae3e84
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -648,7 +648,7 @@ def find_completions(words: Sequence[str], new_word: bool, entry_points: Iterabl
return ans return ans
words = words[1:] words = words[1:]
if not words or (len(words) == 1 and not new_word): if not words or (len(words) == 1 and not new_word):
if words[0].startswith('--') and '=' in words[0]: if words and words[0].startswith('--') and '=' in words[0]:
complete_cli(ans, words, new_word, options_for_completion(), complete_kitty_cli_arg) complete_cli(ans, words, new_word, options_for_completion(), complete_kitty_cli_arg)
return ans return ans
prefix = words[0] if words else '' prefix = words[0] if words else ''