summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-03-11 17:33:05 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-03-11 17:33:05 +0000
commit43d44d155252052557d8738efd4fe6dcdc0a1f22 (patch)
treef03af4678c0494c91ce57c4a2a9dbb78565068a3 /Completion
parentc7564985e53e81de8ab70399b12c1258f45ac303 (diff)
downloadzsh-43d44d155252052557d8738efd4fe6dcdc0a1f22.tar.gz
zsh-43d44d155252052557d8738efd4fe6dcdc0a1f22.tar.xz
zsh-43d44d155252052557d8738efd4fe6dcdc0a1f22.zip
18338: list a single unambiguous match instead of inserting it
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/Widget/_next_tags8
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