Actually I think this is right so I have applied a slight variation on your diff, thanks.
On Tue, Apr 16, 2013 at 09:27:08AM -0700, Christopher Collins wrote: > On Tue, Apr 16, 2013 at 2:36 AM, Nicholas Marriott > <[1]nicholas.marri...@gmail.com> wrote: > > >*** Can you show the code you changed rather than making me guess? :-) > > That would have been a sensible detail to include!* Here is what I > changed. > I don't know what this change might break. > > --- ../temp/tmux-1.8/screen.c** 2013-02-24 04:42:49.000000000 -0800 > +++ screen.c*** 2013-04-16 05:10:49.000000000 -0700 > @@ -366,7 +366,12 @@ > *screen_reflow(struct screen *s, u_int new_x) > *{ > ******* struct grid**** *old = s->grid; > +****** int diff; > * > ******* s->grid = grid_create(old->sx, old->sy, old->hlimit); > -****** s->cy -= grid_reflow(s->grid, old, new_x); > +****** diff = grid_reflow(s->grid, old, new_x); > +****** if (diff > s->cy) { > +************** diff = s->cy; > +****** } > +****** s->cy -= diff; > *} > > >*** Are you increasing or decreasing the font size when this happens? Ie > >*** does the number of rows shrink or grow? > > It happens when I decrease the font size. > > >*** I think screen_resize_y should be changed to prevent s->cy going > >*** negative. Obviously something later on (after screen_reflow) is > fixing > >*** it up but we shouldn't be relying on that. > > Chris > > References > > Visible links > 1. mailto:nicholas.marri...@gmail.com ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users