From a409f051ec18fa9bdbbd540d42e720b3425874b4 Mon Sep 17 00:00:00 2001 From: ptzz Date: Sat, 3 Sep 2022 02:50:08 +0200 Subject: [PATCH] Fix key binding trigger delay (#14) Only a problem with `set blink-matching-paren on` in .inputrc, in which case there was a delay before the key bindings were triggered. Related: junegunn/fzf#580. --- fzf-git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fzf-git.sh b/fzf-git.sh index 1d900a5..07ae22f 100644 --- a/fzf-git.sh +++ b/fzf-git.sh @@ -228,8 +228,8 @@ if [[ -n "${BASH_VERSION:-}" ]]; then bind '"\er": redraw-current-line' local o for o in "$@"; do - bind '"\C-g\C-'${o:0:1}'": "$(_fzf_git_'$o')\e\C-e\er"' - bind '"\C-g'${o:0:1}'": "$(_fzf_git_'$o')\e\C-e\er"' + bind '"\C-g\C-'${o:0:1}'": "`_fzf_git_'$o'`\e\C-e\er"' + bind '"\C-g'${o:0:1}'": "`_fzf_git_'$o'`\e\C-e\er"' done } elif [[ -n "${ZSH_VERSION:-}" ]]; then