summaryrefslogtreecommitdiff
path: root/Completion/Zsh/Context/_subscript
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Context/_subscript')
-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