main: Only expand aliases in command position
This commit is contained in:
parent
99d7235c2b
commit
f46b148c52
@ -498,6 +498,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ $this_word == *:start:* ]] && ! (( in_redirection )); then
|
||||
# Expand aliases.
|
||||
# TODO: this should be done iteratively, e.g., 'alias x=y y=z z=w\n x'
|
||||
# And then the entire 'alias' branch of the 'case' statement should
|
||||
@ -518,6 +519,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
||||
arg=$reply[1]
|
||||
}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Analyse the current word.
|
||||
if _zsh_highlight_main__is_redirection $arg ; then
|
||||
|
Loading…
Reference in New Issue
Block a user