main: Shift args rather than iterating over

No functional change. Prepares for running a full alias through the
state machine.
This commit is contained in:
Matthew Martin 2018-10-17 20:08:45 -05:00
parent 6898f71016
commit b9d7fe5a43

View File

@ -400,9 +400,11 @@ _zsh_highlight_main_highlighter_highlight_list()
else
args=(${(z)buf})
fi
for arg in $args; do
while (( $#args )); do
# Save an unmunged copy of the current word.
arg=$args[1]
arg_raw="$arg"
shift args
# Initialize this_word and next_word.
if (( in_redirection == 0 )); then