summaryrefslogtreecommitdiffstats
path: root/Completion/Core
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-24 10:17:18 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-24 10:17:18 +0000
commit3aeeda594e1f2f572f0865ee01829875d6db369e (patch)
tree00391c6a20cd5d27f52b06682163b08ef2d460da /Completion/Core
parentzsh-workers/9860 (diff)
downloadzsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar.gz
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar.bz2
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar.lz
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar.xz
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.tar.zst
zsh-3aeeda594e1f2f572f0865ee01829875d6db369e.zip
zsh-workers/9861
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_main_complete5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index 6e472634c..739ce2898 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -97,7 +97,8 @@ if zstyle -s ":completion:${curcontext}:" single-ignored tmp &&
esac
fi
-if [[ -n "$tmp" || $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
+if [[ -n "$tmp" || $compstate[old_list] = keep ||
+ $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]]; then
[[ _last_nmatches -ge 0 && _last_nmatches -ne compstate[nmatches] ]] &&
_menu_style=( "$_last_menu_style[@]" "$_menu_style[@]" )
@@ -152,7 +153,7 @@ if [[ -n "$tmp" || $compstate[nmatches]+$compstate[alternate_nmatches] -gt 1 ]];
fi
fi
elif [[ $compstate[nmatches]+$compstate[alternate_nmatches] -eq 0 &&
- $#_lastdescr -ne 0 ]] &&
+ $#_lastdescr -ne 0 && $compstate[old_list] != keep ]] &&
zstyle -s ":completion:${curcontext}:warnings" format format; then
compstate[list]='list force'