mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Fix issue #652.
This commit is contained in:
parent
86fe054005
commit
f32d1704b1
2 changed files with 2 additions and 2 deletions
|
|
@ -548,7 +548,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||
|
||||
if [[ $this_word == *':start:'* ]] && ! (( in_redirection )); then
|
||||
# Expand aliases.
|
||||
_zsh_highlight_main__type "$arg"
|
||||
_zsh_highlight_main__type "$arg" "$(( ! ${+seen_alias[$arg]} ))"
|
||||
local res="$REPLY"
|
||||
if [[ $res == "alias" ]] && [[ $last_alias != $arg ]]; then
|
||||
# Avoid looping forever on alias a=b b=c c=b, but allow alias foo='foo bar'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue