[fzf-tmux] Fix #343 - Escape backticks in --query

This commit is contained in:
Junegunn Choi 2015-09-07 18:40:39 +09:00
parent ac160f98a8
commit 0a22142d88

View File

@ -117,7 +117,9 @@ mkfifo $fifo3
# Build arguments to fzf # Build arguments to fzf
opts="" opts=""
for arg in "${args[@]}"; do for arg in "${args[@]}"; do
opts="$opts \"${arg//\"/\\\"}\"" arg="${arg//\"/\\\"}"
arg="${arg//\`/\\\`}"
opts="$opts \"$arg\""
done done
if [ -n "$term" -o -t 0 ]; then if [ -n "$term" -o -t 0 ]; then