'main': Add TODO.

This commit is contained in:
Daniel Shahaf 2020-03-17 02:21:08 +00:00 committed by Daniel Shahaf
parent c27470a08d
commit 5fd2ae8981

View File

@ -641,6 +641,9 @@ _zsh_highlight_main_highlighter_highlight_list()
else
_zsh_highlight_main_highlighter_expand_path $arg
if [[ $arg != $REPLY ]]; then
# TODO: Is this right? Shouldn't we simply check whether it's
# executable? It's not just aliases and reserved words that aren't
# considered here; builtins should likewise be excluded.
_zsh_highlight_main__type "$REPLY" 0 0
res="$REPLY"
fi