summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorIonel Cristian Mărieș <contact@ionelmc.ro>2017-10-10 06:27:01 +0300
committerJunegunn Choi <junegunn.c@gmail.com>2017-10-10 12:27:01 +0900
commit0580fe9046d038c359645f6e7ed99acfa45b2190 (patch)
tree0bf119c971ae5d8c3a23f9f62e6b74ce4ccd8aeb /shell
parent1b1bc9ea36d76a8b0b84ee66c02b59097bb834be (diff)
Don't do shell quoting for weird chars (#1079)
* Don't do shell quoting for weird chars This would prevent tabs from being escaped as `$'\t'` (definitely not what I would want to see as initial value in the search). * Do different escape.
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index caa6c38b..7064611b 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -60,7 +60,7 @@ fzf-history-widget() {
local selected num
setopt localoptions noglobsubst noposixbuiltins pipefail 2> /dev/null
selected=( $(fc -l 1 |
- FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(q)LBUFFER} +m" $(__fzfcmd)) )
+ FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
local ret=$?
if [ -n "$selected" ]; then
num=$selected[1]