summaryrefslogtreecommitdiffstats
path: root/cmd-choose-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-21 16:53:12 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-21 16:53:12 +0000
commit48291f0eeb9c376f821c746ca1ab6b88fcb62db2 (patch)
tree5758cb2540981782a5c2c1065bf5c8e511a03b32 /cmd-choose-tree.c
parentd5139d140154ef3e90fa65d0a8f2632bad1c67e1 (diff)
Make choose-tree actually work again.
Diffstat (limited to 'cmd-choose-tree.c')
-rw-r--r--cmd-choose-tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-choose-tree.c b/cmd-choose-tree.c
index 1e6bba71..af85a3bf 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;