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:
parent
6898f71016
commit
b9d7fe5a43
@ -400,9 +400,11 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
else
|
else
|
||||||
args=(${(z)buf})
|
args=(${(z)buf})
|
||||||
fi
|
fi
|
||||||
for arg in $args; do
|
while (( $#args )); do
|
||||||
# Save an unmunged copy of the current word.
|
# Save an unmunged copy of the current word.
|
||||||
|
arg=$args[1]
|
||||||
arg_raw="$arg"
|
arg_raw="$arg"
|
||||||
|
shift args
|
||||||
|
|
||||||
# Initialize this_word and next_word.
|
# Initialize this_word and next_word.
|
||||||
if (( in_redirection == 0 )); then
|
if (( in_redirection == 0 )); then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user