mirror of
https://github.com/junegunn/fzf.git
synced 2026-01-30 22:55:37 +08:00
fix: Move 'emulate' command outside interactive check (#3736)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user