From 3d9d13e918c195f974ff7b2f1dc5b65f6b20a441 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 22 Nov 1999 12:29:47 +0000 Subject: zsh-workers/8720 --- Completion/Core/_expand | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Completion/Core/_expand') diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 97728bd3b..68c09ddbb 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -8,11 +8,7 @@ # word from the line. local exp word="$PREFIX$SUFFIX" group=-V expl expl2 disp orig menu prompt -local curcontext="$curcontext" expr descr - -# Probably set initial context. - -[[ -z "$curcontext" ]] && curcontext=':expand' +local curcontext="${curcontext}:expand" expr descr # First, see if we should insert all *completions*. @@ -68,7 +64,7 @@ else expl=(-n) fi -if [[ -n "$menu" && "$menu" != *only* && "$menu" = *showall* ]]; then +if [[ -n "$menu" && "$menu" != *only* && "$menu" = *show-all* ]]; then if [[ -n "$descr" ]]; then expl2=(-ld disp -X "${descr//\\%d/all words}") else -- cgit 1.4.1