summaryrefslogtreecommitdiff
path: root/Functions/Zle/split-shell-arguments
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/split-shell-arguments')
-rw-r--r--Functions/Zle/split-shell-arguments2
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).