mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
driver: Allow for -U in autoloaded function definition
This commit is contained in:
parent
f265ef0b9a
commit
2cbb3fb24e
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ fi
|
||||||
_zsh_highlight__function_is_autoload_stub_p() {
|
_zsh_highlight__function_is_autoload_stub_p() {
|
||||||
if zmodload -e zsh/parameter; then
|
if zmodload -e zsh/parameter; then
|
||||||
#(( ${+functions[$1]} )) &&
|
#(( ${+functions[$1]} )) &&
|
||||||
[[ "$functions[$1]" == *"builtin autoload -X" ]]
|
[[ "$functions[$1]" == *"builtin autoload -X"* ]]
|
||||||
else
|
else
|
||||||
#[[ $(type -wa -- "$1") == *'function'* ]] &&
|
#[[ $(type -wa -- "$1") == *'function'* ]] &&
|
||||||
[[ "${${(@f)"$(which -- "$1")"}[2]}" == $'\t'$histchars[3]' undefined' ]]
|
[[ "${${(@f)"$(which -- "$1")"}[2]}" == $'\t'$histchars[3]' undefined' ]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue