diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Widget/_next_tags | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Completion/Base/Widget/_next_tags b/Completion/Base/Widget/_next_tags index c6d095482..e0a70f5b6 100644 --- a/Completion/Base/Widget/_next_tags +++ b/Completion/Base/Widget/_next_tags @@ -1,4 +1,4 @@ -#compdef -k complete-word \C-xn +#compdef -k list-choices \C-xn # Main widget. @@ -96,11 +96,7 @@ _next_tags() { _next_tags_pfx="$PREFIX" _next_tags_sfx="$SUFFIX" - if [[ -n "$compstate[old_insert]" ]]; then - ins=1 - else - ins=unambiguous - fi + ins="${compstate[old_insert]:+1}" _main_complete _complete _next_tags_completer |