From 43d44d155252052557d8738efd4fe6dcdc0a1f22 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 11 Mar 2003 17:33:05 +0000 Subject: 18338: list a single unambiguous match instead of inserting it --- Completion/Base/Widget/_next_tags | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Completion') 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 -- cgit 1.4.1