From bb93d135ba484cd423ae71b1686c63ac2c1c654f Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 6 Dec 1999 11:39:12 +0000 Subject: zsh-workers/8911 --- Completion/Core/_approximate | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Completion/Core/_approximate') diff --git a/Completion/Core/_approximate b/Completion/Core/_approximate index f10d6588c..c0d409cb3 100644 --- a/Completion/Core/_approximate +++ b/Completion/Core/_approximate @@ -78,7 +78,7 @@ compstate[matcher]=-1 _correct_prompt="${cfgps//\\%e/1}" -_setup original corrections +_setup corrections [[ "$cfgorig" != *last* ]] && builtin compadd -V original builtin compadd -J corrections @@ -104,12 +104,14 @@ while [[ _comp_correct -le comax ]]; do else expl=(-n) fi + _setup original builtin compadd "$expl[@]" -U -V original -Q - "$PREFIX$SUFFIX" # If you always want to see the list of possible corrections, # set `compstate[list]=list' here. - compstate[force_list]=list + [[ "$compstate[list]" != list* ]] && + compstate[list]="$compstate[list] force" fi compstate[matcher]="$compstate[total_matchers]" unfunction compadd -- cgit 1.4.1