about summary refs log tree commit diff
path: root/Completion/Core/_approximate
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-10 14:52:33 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-10 14:52:33 +0000
commitfc95f1a465638327704ba1bf28413b72c6a4226e (patch)
tree9801f747758a73d4bd77a64b1d94e70ecc18499f /Completion/Core/_approximate
parentff716aaa840fb9a9b5f29217150ddf3d587edbb6 (diff)
downloadzsh-fc95f1a465638327704ba1bf28413b72c6a4226e.tar.gz
zsh-fc95f1a465638327704ba1bf28413b72c6a4226e.tar.xz
zsh-fc95f1a465638327704ba1bf28413b72c6a4226e.zip
zsh-workers/9657
Diffstat (limited to 'Completion/Core/_approximate')
-rw-r--r--Completion/Core/_approximate4
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