Download raw body.
[rfc] tog horizontal scroll (diff & blame view)
On 22-06-16 10:12am, Stefan Sperling wrote: > On Thu, Jun 16, 2022 at 09:15:24AM +0200, Stefan Sperling wrote: > > I found two issues while testing it: > > Omar Polo identified another problem on IRC: > > 09:47 < op2> look at the 'implement horizontal scrolling for tog' diff in tog > 09:47 < op2> scroll a bit in the expand_tab function > 09:47 < op2> empty lines added don't have the leading + in the diff > > This fixes the issue. > > diff 1a2197ef21916d5463fd58db659fbc9f2b0f726d /home/stsp/src/got > blob - 5d194fe61eb77d2dcf1a9c4afa9fc79f5a0f2151 > file + tog/tog.c > --- tog/tog.c > +++ tog/tog.c > @@ -3187,7 +3187,7 @@ draw_file(struct tog_view *view, const char *header) > free(line); > return err; > } > - if (view->x < width - 1) > + if (view->x < width) > waddwstr(view->window, wline + view->x); > free(wline); > wline = NULL; > off-by-ones--the bane of my existence. Thanks, Omar and Stefan! -- Mark Jamsek <fnc.bsdbox.org> GPG: F2FF 13DE 6A06 C471 CA80 E6E2 2930 DC66 86EE CF68
[rfc] tog horizontal scroll (diff & blame view)