'main': Don't progress the $in_redirection staller while $in_param.

Fixes #712.
This commit is contained in:
Daniel Shahaf 2020-06-08 14:38:14 +00:00
parent 792c065acb
commit 6fd92e1bbd
2 changed files with 3 additions and 3 deletions

View file

@ -617,7 +617,7 @@ _zsh_highlight_main_highlighter_highlight_list()
if (( in_redirection == 0 )); then if (( in_redirection == 0 )); then
this_word=$next_word this_word=$next_word
next_word=':regular:' next_word=':regular:'
else elif (( !in_param )); then
# Stall $next_word. # Stall $next_word.
(( --in_redirection )) (( --in_redirection ))
fi fi

View file

@ -35,6 +35,6 @@ BUFFER=$'<$fn cat'
expected_region_highlight=( expected_region_highlight=(
'1 1 redirection' # < '1 1 redirection' # <
'2 4 path "issue #712"' # $fn '2 4 path' # $fn
'6 8 command "issue #712"' # cat '6 8 command' # cat
) )