Thanks. I made a slightly different change which passes the flag in from screen_redraw_draw_panes.
Shows how many people use the status line at the top... On Thu, May 07, 2015 at 03:14:30AM +0000, John O'Meara wrote: > I noticed today that when status-position is set to top and the > display-panes command is run, panes which touch the top don't have the > size info displayed in the corner, and other panes get their size info > embedded in their upper border (actually, I think the size is printed, > just on the status line and immediately overwritten* by the status line). > When status-position is set to bottom, all panes get their size in the > upper right hand corner.* > > The attached patch seems to fix this, making the size show in the upper > right corner in both cases. > diff --git a/screen-redraw.c b/screen-redraw.c > index e3369b8..b1296c9 100644 > --- a/screen-redraw.c > +++ b/screen-redraw.c > @@ -396,6 +396,9 @@ screen_redraw_draw_number(struct client *c, struct > window_pane *wp) > px = wp->sx / 2; py = wp->sy / 2; > xoff = wp->xoff; yoff = wp->yoff; > > + if (options_get_number(oo, "status") && options_get_number(oo, > "status-position") == 0) > + yoff++; > + > if (wp->sx < len * 6 || wp->sy < 5) { > tty_cursor(tty, xoff + px - len / 2, yoff + py); > goto draw_text; > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users