summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-03-21 16:53:12 +0000
committernicm <nicm@openbsd.org>2013-03-21 16:53:12 +0000
commita5d06e5ada99e36bffc2ebe8790eadc9b59c5c07 (patch)
treeae97c27ed50ec870b67e1afa73175f18ff22a88b
parentFix a comment for new key table names. (diff)
downloadwireguard-openbsd-a5d06e5ada99e36bffc2ebe8790eadc9b59c5c07.tar.xz
wireguard-openbsd-a5d06e5ada99e36bffc2ebe8790eadc9b59c5c07.zip
Make choose-tree actually work again.
-rw-r--r--usr.bin/tmux/cmd-choose-tree.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-choose-tree.c b/usr.bin/tmux/cmd-choose-tree.c
index f7c491f30d5..71022f834fe 100644
--- a/usr.bin/tmux/cmd-choose-tree.c
+++ b/usr.bin/tmux/cmd-choose-tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-choose-tree.c,v 1.19 2013/03/21 16:23:07 nicm Exp $ */
+/* $OpenBSD: cmd-choose-tree.c,v 1.20 2013/03/21 16:53:12 nicm Exp $ */
/*
* Copyright (c) 2012 Thomas Adam <thomas@xteddy.org>
@@ -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;