From 252288aff217e81d5101939a340cb0d44669a2a6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 Aug 2022 12:02:25 +0530 Subject: [PATCH] kitten completion: Fix --long-opt not working --- kitty/complete.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kitty/complete.py b/kitty/complete.py index d203178ac..c7105233c 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -660,11 +660,10 @@ def complete_kitten(ans: Completions, kitten: str, words: Sequence[str], new_wor options = cd['options']() seq = parse_option_spec(options)[0] option_map = {} - if not new_word: - for opt in seq: - if not isinstance(opt, str): - for alias in opt['aliases']: - option_map[alias] = opt + for opt in seq: + if not isinstance(opt, str): + for alias in opt['aliases']: + option_map[alias] = opt complete_alias_map(ans, words, new_word, option_map, { 'icat': complete_icat_args, 'diff': complete_diff_args,