From 93aeae198511af76dc5b311601266bcaef36ba80 Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Thu, 7 Dec 2017 23:31:50 +0900
Subject: [PATCH] [bash] Trigger redraw-current-line before history-expand-line

Close #681
---
 shell/key-bindings.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index 4266a407..91ef1ec1 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -80,7 +80,7 @@ if [[ ! -o vi ]]; then
   fi
 
   # CTRL-R - Paste the selected command from history into the command line
-  bind '"\C-r": " \C-e\C-u`__fzf_history__`\e\C-e\e^\er"'
+  bind '"\C-r": " \C-e\C-u`__fzf_history__`\e\C-e\er\e^"'
 
   # ALT-C - cd into the selected directory
   bind '"\ec": " \C-e\C-u`__fzf_cd__`\e\C-e\er\C-m"'
@@ -110,7 +110,7 @@ else
   bind -m vi-command '"\C-t": "i\C-t"'
 
   # CTRL-R - Paste the selected command from history into the command line
-  bind '"\C-r": "\C-x\C-addi`__fzf_history__`\C-x\C-e\C-x^\C-x\C-a$a\C-x\C-r"'
+  bind '"\C-r": "\C-x\C-addi`__fzf_history__`\C-x\C-e\C-x\C-r\C-x^\C-x\C-a$a"'
   bind -m vi-command '"\C-r": "i\C-r"'
 
   # ALT-C - cd into the selected directory
-- 
GitLab