summaryrefslogtreecommitdiff
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
authorLangLangBart <92653266+LangLangBart@users.noreply.github.com>2024-11-10 09:40:59 +0100
committerGitHub <noreply@github.com>2024-11-10 17:40:59 +0900
commit57c08d925f050bb955028992a6435c4341e1056a (patch)
tree4c524c779673857a8f023aaeed64a8d80726bb3d /shell/key-bindings.zsh
parent51623a5f6a2a15c3cd8c6860c3558c47b7f13d60 (diff)
downloadfzf-57c08d925f050bb955028992a6435c4341e1056a.tar.gz
Enhance command extraction in zsh completion (#4082)
Fix #1992
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r--shell/key-bindings.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index 3015f12d..c8c20767 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -111,7 +111,7 @@ fzf-history-widget() {
# Ensure the module is loaded if not already, and the required features, such
# as the associative 'history' array, which maps event numbers to full history
# lines, are set. Also, make sure Perl is installed for multi-line output.
- if zmodload -F zsh/parameter p:{commands,history} 2>/dev/null && (( ${#commands[perl]} )); then
+ if zmodload -F zsh/parameter p:{commands,history} 2>/dev/null && (( $+commands[perl] )); then
# Import commands from other shells if SHARE_HISTORY is enabled, as the
# 'history' array only updates after executing a non-empty command.
selected="$(