From fc95f1a465638327704ba1bf28413b72c6a4226e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 10 Feb 2000 14:52:33 +0000 Subject: zsh-workers/9657 --- Completion/Core/_approximate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion/Core/_approximate') 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 -- cgit 1.4.1