driver: Allow for -U in autoloaded function definition

This commit is contained in:
Matthew Martin 2018-01-08 12:59:56 -06:00
parent f265ef0b9a
commit 2cbb3fb24e

View file

@ -53,7 +53,7 @@ fi
_zsh_highlight__function_is_autoload_stub_p() {
if zmodload -e zsh/parameter; then
#(( ${+functions[$1]} )) &&
[[ "$functions[$1]" == *"builtin autoload -X" ]]
[[ "$functions[$1]" == *"builtin autoload -X"* ]]
else
#[[ $(type -wa -- "$1") == *'function'* ]] &&
[[ "${${(@f)"$(which -- "$1")"}[2]}" == $'\t'$histchars[3]' undefined' ]]