'main': Don't dequote the word in command position before analyzing it.

Fixes #656.
Fixes #660.

Regression from commit e1ecf950e2,
"main: Do path expanstion after alias expansion" (sic).
This commit is contained in:
Daniel Shahaf
2020-01-12 15:27:55 +00:00
committed by Daniel Shahaf
parent 27fa4a6546
commit 2d0dddf58b
5 changed files with 149 additions and 2 deletions

View File

@@ -580,8 +580,7 @@ _zsh_highlight_main_highlighter_highlight_list()
continue
else
_zsh_highlight_main_highlighter_expand_path $arg
arg=$REPLY
_zsh_highlight_main__type "$arg" 0
_zsh_highlight_main__type "$REPLY" 0
res="$REPLY"
fi
fi