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

users/21955: add missing final colon in zstyle context lookup; allow a single unique match to appear in "expansions" tag

This commit is contained in:
Barton E. Schaefer 2016-09-21 21:27:21 -07:00
parent 34d512a677
commit 18200dc030
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2016-09-21 Barton E. Schaefer <schaefer@brasslantern.com>
* users/21955: Completion/Base/Completer/_user_expand: add
missing final colon in zstyle context lookup; allow a single
unique match to appear in "expansions" tag
2016-09-21 Oliver Kiddle <opk@zsh.org>
* 39370: Completion/Zsh/Command/_typeset,

View file

@ -27,7 +27,7 @@ exp=("$word")
# Now look for user completions.
zstyle -a ":completion:${curcontext}" user-expand specs || return 1
zstyle -a ":completion:${curcontext}:" user-expand specs || return 1
for spec in $specs; do
REPLY=
@ -95,7 +95,7 @@ if [[ -z "$compstate[insert]" ]] ;then
else
_tags all-expansions expansions original
if [[ $#exp -gt 1 ]] && _requested expansions; then
if [[ $#exp -ge 1 ]] && _requested expansions; then
local i j normal space dir
if [[ "$sort" = menu ]]; then