Re: [PATCH] Window reference printable flag/format option

2015-05-06 Thread Nicholas Marriott
Index: cmd-kill-window.c === RCS file: /cvs/src/usr.bin/tmux/cmd-kill-window.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -p -r1.16 -r1.17 --- cmd-kill-window.c 22 Oct 2014 23:11:41 - 1.16 +++ cmd-kill-windo

Re: [PATCH] Window reference printable flag/format option

2015-05-04 Thread Thomas Adam
On Sun, May 03, 2015 at 09:08:51AM +0100, Nicholas Marriott wrote: > Hi > > format_defaults_window can't rely on ft->s being set. Perhaps you want > to put it in format_defaults_winlink, although check if that always has > the session. > > I don't think it's good that every window in a grouped se

Re: [PATCH] Window reference printable flag/format option

2015-05-03 Thread Thomas Adam
On Sun, May 03, 2015 at 09:08:51AM +0100, Nicholas Marriott wrote: > Possibly you should just add the format and then add > #{?window_references,+,,} to window-status-format yourself rather than > making it a new fixed flag. Yeah, fair enough. I've done this, and hence this leaves an extra space

Re: [PATCH] Window reference printable flag/format option

2015-05-03 Thread Nicholas Marriott
Hi format_defaults_window can't rely on ft->s being set. Perhaps you want to put it in format_defaults_winlink, although check if that always has the session. I don't think it's good that every window in a grouped session should suddenly grow a +. Possibly you should just add the format and then