mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
add some braces to avoid compiler warnings
This commit is contained in:
parent
fbc51c9ea7
commit
791ada572b
3 changed files with 17 additions and 8 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue