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:
parent
c7564985e5
commit
43d44d1552
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue