main: Forget seen aliases when starting a new command

Fixes #769
This commit is contained in:
Matthew Martin
2020-10-08 19:35:12 -05:00
parent aac09942b8
commit 2ebfa6a598
6 changed files with 203 additions and 0 deletions

View File

@@ -879,6 +879,7 @@ _zsh_highlight_main_highlighter_highlight_list()
next_word=':start:'
highlight_glob=true
saw_assignment=false
seen_alias=()
if [[ $arg != '|' && $arg != '|&' ]]; then
next_word+=':start_of_pipeline:'
fi