'main': Fix issue #652.
This commit is contained in:
parent
ce10f20e77
commit
44aa6f1f4e
@ -547,7 +547,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||||||
|
|
||||||
if [[ $this_word == *:start:* ]] && ! (( in_redirection )); then
|
if [[ $this_word == *:start:* ]] && ! (( in_redirection )); then
|
||||||
# Expand aliases.
|
# Expand aliases.
|
||||||
_zsh_highlight_main__type "$arg"
|
_zsh_highlight_main__type "$arg" "$(( ! ${+seen_alias[$arg]} ))"
|
||||||
local res="$REPLY"
|
local res="$REPLY"
|
||||||
if [[ $res == "alias" ]] && [[ $last_alias != $arg ]]; then
|
if [[ $res == "alias" ]] && [[ $last_alias != $arg ]]; then
|
||||||
# Avoid looping forever on alias a=b b=c c=b, but allow alias foo='foo bar'
|
# Avoid looping forever on alias a=b b=c c=b, but allow alias foo='foo bar'
|
||||||
|
@ -32,5 +32,5 @@ alias ls=tmp tmp='command ls'
|
|||||||
BUFFER='ls'
|
BUFFER='ls'
|
||||||
|
|
||||||
expected_region_highlight=(
|
expected_region_highlight=(
|
||||||
"1 2 alias 'issue #652'" # ls
|
"1 2 alias" # ls
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user