Download raw body.
small tog split view regression
On Thu, Jun 30, 2022 at 11:09:40AM +0200, Omar Polo wrote:
> > --- tog/tog.c
> > +++ tog/tog.c
> > @@ -781,6 +781,12 @@ view_is_splitscreen(struct tog_view *view)
> > return view->begin_x > 0 || view->begin_y > 0;
> > }
> >
> > +static int
> > +view_is_fullscreen(struct tog_view *view)
> > +{
> > + return view->nlines == LINES && view->ncols == COLS;
>
> still have to test the diff but there is a reason for LINES and COLS
> here instead of view->lines/cols? I'm worried that view->lines and
> LINES could go out-of-sync temporarly during a resize.
Checking against our cached copies of LINES and COLS doesn't fix the bug.
small tog split view regression