diff options
author | 2013-03-21 16:53:12 +0000 | |
---|---|---|
committer | 2013-03-21 16:53:12 +0000 | |
commit | a5d06e5ada99e36bffc2ebe8790eadc9b59c5c07 (patch) | |
tree | ae97c27ed50ec870b67e1afa73175f18ff22a88b | |
parent | Fix a comment for new key table names. (diff) | |
download | wireguard-openbsd-a5d06e5ada99e36bffc2ebe8790eadc9b59c5c07.tar.xz wireguard-openbsd-a5d06e5ada99e36bffc2ebe8790eadc9b59c5c07.zip |
Make choose-tree actually work again.
-rw-r--r-- | usr.bin/tmux/cmd-choose-tree.c | 7 |
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; |