From 993a79e7bcd9787a029f6beff1daed1315143f8f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 13 Feb 2015 11:19:28 +0900 Subject: [PATCH] Fix ftpane (tested on bash) --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index b12b254..0bd9848 100644 --- a/Examples.md +++ b/Examples.md @@ -179,7 +179,7 @@ ftpane () { panes=$(tmux list-panes -s -F '#I:#P - #{pane_current_path} #{pane_current_command}') current_window=$(tmux display-message -p '#I') - target=$(echo $panes | fzf) + target=$(echo "$panes" | fzf) || return target_window=$(echo $target | awk 'BEGIN{FS=":|-"} {print$1}') target_pane=$(echo $target | awk 'BEGIN{FS=":|-"} {print$2}' | cut -c 1)