From 791ada572b5c91b17b1b3c71af48c6bf9b1ca111 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 30 Mar 2012 11:01:11 +0000 Subject: add some braces to avoid compiler warnings --- Functions/Zle/split-shell-arguments | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Functions') 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). -- cgit 1.4.1