diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-03 17:22:40 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-03 17:22:40 +0000 |
commit | ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73 (patch) | |
tree | a45e062eb30e19f11c04c8bb7d30e36c1b77eb7e /Completion/Commands/_correct_word | |
parent | 52a67fbbda1eda1e45d9aa6eed6c9650fbd6d0b1 (diff) | |
download | zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.tar.gz zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.tar.xz zsh-ed41dafd3c79ebf2ce390ee9af54fe8bb21deb73.zip |
zsh-workers/9546
Diffstat (limited to 'Completion/Commands/_correct_word')
-rw-r--r-- | Completion/Commands/_correct_word | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Commands/_correct_word b/Completion/Commands/_correct_word index e0fee1fff..46480da47 100644 --- a/Completion/Commands/_correct_word +++ b/Completion/Commands/_correct_word @@ -9,6 +9,10 @@ local curcontext="$curcontext" -[[ -z "$curcontext" ]] && curcontext=":correct-word" +if [[ -z "$curcontext" ]]; then + curcontext="correct-word:::" +else + curcontext="correct-word:${curcontext#*:}" +fi _main_complete _correct |