summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.bash
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-12-07 23:31:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-12-07 23:33:01 +0900
commit93aeae198511af76dc5b311601266bcaef36ba80 (patch)
treeac4d4f51e20007dbf078e7b73a5ba609b7c4cc21 /shell/key-bindings.bash
parent5c34ab6692b2aa555fde7ce1399f4155b6f0438a (diff)
[bash] Trigger redraw-current-line before history-expand-line
Close #681
Diffstat (limited to 'shell/key-bindings.bash')
-rw-r--r--shell/key-bindings.bash4
1 files 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