From 18200dc03028d03047edf3efd3c7a81bbd883092 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 21 Sep 2016 21:27:21 -0700 Subject: users/21955: add missing final colon in zstyle context lookup; allow a single unique match to appear in "expansions" tag --- Completion/Base/Completer/_user_expand | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/Completer/_user_expand b/Completion/Base/Completer/_user_expand index cf3d172f0..066e2e8e5 100644 --- a/Completion/Base/Completer/_user_expand +++ b/Completion/Base/Completer/_user_expand @@ -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 -- cgit 1.4.1