diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-26 08:56:49 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-26 08:56:49 +0000 |
commit | 65345f9e5036da80e2acd2941a9703526c9d44ad (patch) | |
tree | 4187ac6e1f712a16914c9bade1ce3bcfaa32ae62 /Completion/Core/_correct | |
parent | 6e762fbd481d6427a4e8561fb11e4bd839db0bb5 (diff) | |
download | zsh-65345f9e5036da80e2acd2941a9703526c9d44ad.tar.gz zsh-65345f9e5036da80e2acd2941a9703526c9d44ad.tar.xz zsh-65345f9e5036da80e2acd2941a9703526c9d44ad.zip |
zsh-workers/8787
Diffstat (limited to 'Completion/Core/_correct')
-rw-r--r-- | Completion/Core/_correct | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_correct b/Completion/Core/_correct index c958bdb83..35114ed22 100644 --- a/Completion/Core/_correct +++ b/Completion/Core/_correct @@ -8,7 +8,9 @@ # Supported configuration keys are the same as for `_approximate', only # starting with `correct'. -local ret=1 opm="$compstate[pattern_match]" curcontext="${curcontext}:correct" +local ret=1 opm="$compstate[pattern_match]" curcontext="${curcontext}" + +[[ "$curcontext" != :correct* ]] && curcontext="${curcontext}:correct" compstate[pattern_match]='-' |