diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-30 11:01:11 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-03-30 11:01:11 +0000 |
commit | 791ada572b5c91b17b1b3c71af48c6bf9b1ca111 (patch) | |
tree | 06b4c57a8679f47dc135db509791ed85213f817a /Functions/Zle/split-shell-arguments | |
parent | fbc51c9ea7c9350c28c6fa3d8c88576ab0e8d226 (diff) | |
download | zsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.tar.gz zsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.tar.xz zsh-791ada572b5c91b17b1b3c71af48c6bf9b1ca111.zip |
add some braces to avoid compiler warnings
Diffstat (limited to 'Functions/Zle/split-shell-arguments')
-rw-r--r-- | Functions/Zle/split-shell-arguments | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Functions/Zle/split-shell-arguments b/Functions/Zle/split-shell-arguments index 32b04fcb5..11a928719 100644 --- a/Functions/Zle/split-shell-arguments +++ b/Functions/Zle/split-shell-arguments @@ -17,6 +17,7 @@ integer pos=1 cpos=$((CURSOR+1)) opos iword ichar bufwords=(${(Z+n+)BUFFER}) +typeset -ga reply reply=() while [[ ${BUFFER[pos]} = [[:space:]] ]]; do (( pos++ )) @@ -44,6 +45,7 @@ for word in "${bufwords[@]}"; do fi done +typeset -g REPLY REPLY2 if (( iword == 0 )); then # At the end of the line, so off the indexable positions # (but still a valid cursor position). |