about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-03-01 05:14:38 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-03-01 05:14:38 +0000
commit4b98b648dfb0b641ea9592b66c87365449723194 (patch)
treee43e94f825b53346a6b4dbd0615d80fb434a0747
parent4e354ca36f5c1259b9f561bea52828f457e8e8ba (diff)
downloadzsh-4b98b648dfb0b641ea9592b66c87365449723194.tar.gz
zsh-4b98b648dfb0b641ea9592b66c87365449723194.tar.xz
zsh-4b98b648dfb0b641ea9592b66c87365449723194.zip
16748: Fix infinite loop introduced by 16464.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_zle2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b074b6518..b250ec666 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-28  Bart Schaefer  <schaefer@zsh.org>
+
+	* 16748: Completion/Zsh/Command/_zle: Fix infinite loop
+	introduced by 16464.
+
 2002-02-25  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 16711: Src/loop.c: allow nterruption of empty while-loops
diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle
index 1e787e54f..a1fe136c5 100644
--- a/Completion/Zsh/Command/_zle
+++ b/Completion/Zsh/Command/_zle
@@ -46,9 +46,9 @@ while (( $#state )); do
       ;;
     (widget*)
       _wanted -C "$context[1]" widgets expl widget compadd -k widgets && ret=0
-      [[ $st != *function ]] && continue
       ;&
     (function)
+      [[ $state[1] != *function ]] ||	# Handle fall-through
       _wanted -C "$context[1]" functions expl 'widget shell function' \
 	compadd -k functions && ret=0
       ;;