From 0c64c6878154da1db90084dddc81608e47bd7e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=83=E9=87=8C?= Date: Tue, 12 Nov 2024 02:53:36 +1100 Subject: Fix zsh $+name syntax does not work with setopt ksh_arrays (#4084) --- shell/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/completion.zsh') diff --git a/shell/completion.zsh b/shell/completion.zsh index a6d686e9..171a1b2b 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -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 -- cgit v1.2.3