Fix zsh $+name syntax does not work with setopt ksh_arrays (#4084)

This commit is contained in:
林千里
2024-11-12 02:53:36 +11:00
committed by GitHub
parent 3ec035c68b
commit 0c64c68781
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ fzf-completion() {
setopt localoptions noshwordsplit noksh_arrays noposixbuiltins
# Check if at least one completion system (old or new) is active
if ! zmodload -F zsh/parameter p:functions 2>/dev/null || ! (( $+functions[compdef] )); then
if ! zmodload -F zsh/parameter p:functions 2>/dev/null || ! (( ${+functions[compdef]} )); then
if ! zmodload -e zsh/compctl; then
zmodload -i zsh/compctl
fi