summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-06-20 17:42:15 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-06-20 17:42:15 +0000
commite8cb280d503d882554cbf1c02373bea32c8c2960 (patch)
treea3b3495e9fede67848a8fd4c236d94d85ea4fb37 /Completion
parentef6193b89b4d997aec31d6f36fb5c64db141c3d3 (diff)
downloadzsh-e8cb280d503d882554cbf1c02373bea32c8c2960.tar.gz
zsh-e8cb280d503d882554cbf1c02373bea32c8c2960.tar.xz
zsh-e8cb280d503d882554cbf1c02373bea32c8c2960.zip
Fix "insert-tab pending" zstyle.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/Core/_main_complete4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete
index eecb30b34..5d1f15f3a 100644
--- a/Completion/Base/Core/_main_complete
+++ b/Completion/Base/Core/_main_complete
@@ -35,8 +35,8 @@ typeset -U _lastdescr _comp_ignore _comp_colors
 
 zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
 
-if [[ "$tmp" = *pending(|[[:blank:]]*) ||
-      ( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) && 
+if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
+      ( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&
         PENDING -ge $match[1] ) ]]; then
   compstate[insert]=tab