about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/Core/_main_complete4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index dafe2e6fa..97118ac5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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