summaryrefslogtreecommitdiff
path: root/shell/key-bindings.bash
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-06-08 01:30:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-06-08 01:30:26 +0900
commit95b34de339822d6e81898c7e52f94a7165be39bc (patch)
tree8e6ba2b05b57375cbbee4325298b499f7224e800 /shell/key-bindings.bash
parent6a431cbf49799327d763681758943be9e313b034 (diff)
downloadfzf-95b34de339822d6e81898c7e52f94a7165be39bc.tar.gz
[bash/zsh] Fix $FZF_CTRL_R_OPTS with option values with spaces
Diffstat (limited to 'shell/key-bindings.bash')
-rw-r--r--shell/key-bindings.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index 41e707ea..b87decaa 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -51,7 +51,7 @@ __fzf_history__() (
shopt -u nocaseglob nocasematch
line=$(
HISTTIMEFORMAT= history |
- $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS |
+ eval "$(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS" |
\grep '^ *[0-9]') &&
if [[ $- =~ H ]]; then
sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line"