about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Zsh/Context/_subscript2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a07eafa4b..01d8cb24e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-07  Peter Stephenson  <pws@csr.com>
+
+	* Bart: 26822: Completion/Zsh/Context/_subscript: ">" should
+	be "-gt"---caused infinite loop looking for no existent subscript.
+
 2009-04-06  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	*  Frank Terbeck <ft@bewatermyfriend.org>:  Functions/VCS_Info/*:
@@ -11528,5 +11533,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4644 $
+* $Revision: 1.4645 $
 *****************************************************
diff --git a/Completion/Zsh/Context/_subscript b/Completion/Zsh/Context/_subscript
index b86e8c39e..39bdcedac 100644
--- a/Completion/Zsh/Context/_subscript
+++ b/Completion/Zsh/Context/_subscript
@@ -17,7 +17,7 @@ compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags
 # name expansion.  Also expand in anything that looks like an assignment
 # or colon list.
 integer pos=$((CURSOR+1))
-while [[ pos > 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
+while [[ pos -gt 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done
 if [[ $BUFFER[1,pos-1] = *[[:space:]:=]##\~\[ ]]; then
   _dynamic_directory_name
 elif [[ "$PREFIX" = :* ]]; then