summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-04-07 09:26:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-04-07 09:26:17 +0000
commitf56ccae96c21dab260c7161b628e1a5635915447 (patch)
tree6d91ced80e9cf773b806473075f343a1eaac2159 /Completion/Zsh
parent8dd8067f13e5aaf2fc740748b0afeca00b1ea424 (diff)
downloadzsh-f56ccae96c21dab260c7161b628e1a5635915447.tar.gz
zsh-f56ccae96c21dab260c7161b628e1a5635915447.tar.xz
zsh-f56ccae96c21dab260c7161b628e1a5635915447.zip
Bart: 26822: infinite loop in variable completion looking for subscript
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Context/_subscript2
1 files changed, 1 insertions, 1 deletions
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