fix: Move 'emulate' command outside interactive check (#3736)

This commit is contained in:
LangLangBart
2024-04-17 11:03:12 +02:00
committed by GitHub
parent 90d7e38909
commit d169c951f3
2 changed files with 6 additions and 8 deletions

View File

@@ -11,8 +11,6 @@
# - $FZF_ALT_C_COMMAND
# - $FZF_ALT_C_OPTS
if [[ -o interactive ]]; then
# Key bindings
# ------------
@@ -38,6 +36,7 @@ fi
'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases'
{
if [[ -o interactive ]]; then
# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {
@@ -114,10 +113,9 @@ zle -N fzf-history-widget
bindkey -M emacs '^R' fzf-history-widget
bindkey -M vicmd '^R' fzf-history-widget
bindkey -M viins '^R' fzf-history-widget
fi
} always {
eval $__fzf_key_bindings_options
'unset' '__fzf_key_bindings_options'
}
fi