The branch, master has been updated
       via  4f01bfc4bce9688c6c8b35f698c8444270e20cdc (commit)
      from  1d591ada76c049343feab503863cc57308bb1280 (commit)

- Log -----------------------------------------------------------------
commit 4f01bfc4bce9688c6c8b35f698c8444270e20cdc
Author: Nicholas Marriott <nicholas.marri...@gmail.com>
Commit: Nicholas Marriott <nicholas.marri...@gmail.com>

    Make choose-tree actually work again.
---
 cmd-choose-tree.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index 51a329e..e84bf69 100644
--- a/cmd-choose-tree.c
+++ b/cmd-choose-tree.c
@@ -203,8 +203,9 @@ windows_only:
                                        cur_win = idx_ses;
                        }
 
-                       xasprintf(&final_win_action, "%s ; %s",
-                           wcd ? wcd->command : "",  win_action);
+                       xasprintf(&final_win_action, "%s %s %s",
+                           wcd != NULL ? wcd->command : "",
+                           wcd != NULL ? ";" : "", win_action);
 
                        if (win_ses != win_max)
                                cur_win_template = final_win_template_middle;


-----------------------------------------------------------------------

Summary of changes:
 cmd-choose-tree.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to