Merge pull request #790 from FederAndInk/fix/functions_tests

fix (( $+functions[_f] )) || _f()
This commit is contained in:
okapia 2021-04-08 16:36:21 +02:00 committed by GitHub
commit 43fecdfe87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -483,7 +483,7 @@ _conan_conanfiles() {
_files -g '*.py'
}
(( $+functions[_conan_directory_or_package_references] )) ||
(( $+functions[_conan_conanfiles_or_package_references] )) ||
_conan_conanfiles_or_package_references() {
_alternative \
'conanfile: :_conan_conanfiles' \

View File

@ -375,7 +375,7 @@ _arguments -C -A "-*" \
}
(( $+functions[root_commands] )) ||
(( $+functions[_root_commands] )) ||
_root_commands() {
local commands;
commands=(

View File

@ -75,7 +75,7 @@ _get_filters() {
}
(( $+functions[_pygmentize_get_formatters] )) ||
(( $+functions[_get_formatters] )) ||
_get_formatters() {
local cache_policy
zstyle -s ":completion:${curcontext}:" cache-policy cache_policy