From ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 3 Feb 2000 17:22:40 +0000 Subject: zsh-workers/9546 --- Completion/Commands/_expand_word | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/Commands/_expand_word') diff --git a/Completion/Commands/_expand_word b/Completion/Commands/_expand_word index b4e22de48..ad334da9d 100644 --- a/Completion/Commands/_expand_word +++ b/Completion/Commands/_expand_word @@ -7,6 +7,10 @@ local curcontext="$curcontext" -[[ -z "$curcontext" ]] && curcontext=":expand-word" +if [[ -z "$curcontext" ]]; then + curcontext="correct-word:::" +else + curcontext="expand-word:${curcontext#*:}" +fi _main_complete _expand -- cgit 1.4.1