1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

18338: list a single unambiguous match instead of inserting it

This commit is contained in:
Oliver Kiddle 2003-03-11 17:33:05 +00:00
parent c7564985e5
commit 43d44d1552

View file

@ -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