Merge pull request #790 from FederAndInk/fix/functions_tests

fix (( $+functions[_f] )) || _f()
This commit is contained in:
okapia authored and GitHub committed 2021-04-08 16:36:21 +02:00
commit 43fecdfe87
3 files changed
+3 -3

No files matched your search

+1 -1
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' \
+1 -1
View File
@@ -375,7 +375,7 @@ _arguments -C -A "-*" \
}
(( $+functions[root_commands] )) ||
(( $+functions[_root_commands] )) ||
_root_commands() {
local commands;
commands=(
+1 -1
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