--- trunk/cmd-choose-tree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/trunk/cmd-choose-tree.c b/trunk/cmd-choose-tree.c index b33bf34..46d940d 100644 --- a/trunk/cmd-choose-tree.c +++ b/trunk/cmd-choose-tree.c @@ -149,7 +149,8 @@ cmd_choose_tree_exec(struct cmd *self, struct cmd_ctx *ctx) * without any padding. */ if (wflag && sflag) - xasprintf(&final_win_template, " --> %s", win_template); + xasprintf(&final_win_template, "(#{line}) --> %s", + win_template); else if (wflag) final_win_template = xstrdup(win_template); else @@ -203,7 +204,8 @@ windows_only: window_choose_add_window(wl->window->active, ctx, s2, wm, final_win_template, - final_win_action, idx_ses); + final_win_action, + (wflag && !sflag) ? win_ses : idx_ses); free(final_win_action); } -- 1.7.10 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users