diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-10 14:52:33 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-10 14:52:33 +0000 |
commit | fc95f1a465638327704ba1bf28413b72c6a4226e (patch) | |
tree | 9801f747758a73d4bd77a64b1d94e70ecc18499f /Completion/Core/_approximate | |
parent | ff716aaa840fb9a9b5f29217150ddf3d587edbb6 (diff) | |
download | zsh-fc95f1a465638327704ba1bf28413b72c6a4226e.tar.gz zsh-fc95f1a465638327704ba1bf28413b72c6a4226e.tar.xz zsh-fc95f1a465638327704ba1bf28413b72c6a4226e.zip |
zsh-workers/9657
Diffstat (limited to 'Completion/Core/_approximate')
-rw-r--r-- | Completion/Core/_approximate | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_approximate b/Completion/Core/_approximate index 283f30e83..ef6e5b91d 100644 --- a/Completion/Core/_approximate +++ b/Completion/Core/_approximate @@ -6,7 +6,7 @@ # or get the corrected prefix. local _comp_correct _correct_expl comax cfgacc -local curcontext="${curcontext}" oldcontext +local curcontext="${curcontext}" oldcontext opm="$compstate[pattern_match]" # Only if all global matchers have been tried. @@ -100,6 +100,7 @@ while [[ _comp_correct -le comax ]]; do fi compstate[matcher]="$compstate[total_matchers]" unfunction compadd + compstate[pattern_match]="$opm" return 0 fi @@ -110,5 +111,6 @@ done compstate[matcher]="$compstate[total_matchers]" unfunction compadd +compstate[pattern_match]="$opm" return 1 |