1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

Fix "insert-tab pending" zstyle.

This commit is contained in:
Bart Schaefer 2001-06-20 17:42:15 +00:00
parent ef6193b89b
commit e8cb280d50
2 changed files with 7 additions and 2 deletions

@ -1,3 +1,8 @@
2001-06-20 Bart Schaefer <schaefer@zsh.org>
* 14880: Completion/Base/Core/_main_complete: Fix insert-tab style
when value is `pending'. (Belated commit, out of number order.)
2001-06-20 Peter Stephenson <pws@csr.com>
* 14988 with mod suggested in 14989: Src/exec.c: avoid names of

@ -35,7 +35,7 @@ typeset -U _lastdescr _comp_ignore _comp_colors
zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
if [[ "$tmp" = *pending(|[[:blank:]]*) ||
if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&
PENDING -ge $match[1] ) ]]; then
compstate[insert]=tab