File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ fzf-completion() {
308
308
setopt localoptions noshwordsplit noksh_arrays noposixbuiltins
309
309
310
310
# Check if at least one completion system (old or new) is active
311
- if ! zmodload -F zsh/parameter p:functions 2> /dev/null || ! (( $+ functions[compdef] )) ; then
311
+ if ! zmodload -F zsh/parameter p:functions 2> /dev/null || ! (( ${ +functions[compdef]} )) ; then
312
312
if ! zmodload -e zsh/compctl; then
313
313
zmodload -i zsh/compctl
314
314
fi
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ fzf-history-widget() {
111
111
# Ensure the module is loaded if not already, and the required features, such
112
112
# as the associative 'history' array, which maps event numbers to full history
113
113
# lines, are set. Also, make sure Perl is installed for multi-line output.
114
- if zmodload -F zsh/parameter p:{commands,history} 2> /dev/null && (( $+ commands[perl] )) ; then
114
+ if zmodload -F zsh/parameter p:{commands,history} 2> /dev/null && (( ${ +commands[perl]} )) ; then
115
115
# Import commands from other shells if SHARE_HISTORY is enabled, as the
116
116
# 'history' array only updates after executing a non-empty command.
117
117
selected=" $(
You can’t perform that action at this time.
0 commit comments