Revision: 2818 http://tmux.svn.sourceforge.net/tmux/?rev=2818&view=rev Author: tcunha Date: 2012-05-30 13:49:45 +0000 (Wed, 30 May 2012) Log Message: ----------- Sync OpenBSD patchset 1130:
Add pane title to choose-window template and use the right index for the pane, from Romain Francoise. Modified Paths: -------------- trunk/cmd-choose-window.c Modified: trunk/cmd-choose-window.c =================================================================== --- trunk/cmd-choose-window.c 2012-05-30 13:49:05 UTC (rev 2817) +++ trunk/cmd-choose-window.c 2012-05-30 13:49:45 UTC (rev 2818) @@ -72,7 +72,7 @@ return (0); if ((template = args_get(args, 'F')) == NULL) - template = DEFAULT_WINDOW_TEMPLATE; + template = DEFAULT_WINDOW_TEMPLATE " \"#{pane_title}\""; cur = idx = 0; RB_FOREACH(wm, winlinks, &s->windows) { @@ -84,9 +84,10 @@ format_add(ft, "line", "%u", idx); format_session(ft, s); format_winlink(ft, s, wm); + format_window_pane(ft, wm->window->active); line = format_expand(ft, template); - window_choose_add(wl->window->active, idx, "%s", line); + window_choose_add(wl->window->active, wm->idx, "%s", line); xfree(line); format_free(ft); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ 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-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs