commit 0ce35b66957ca0c2d19ae9833da0a3e607425d94 from: Stefan Sperling date: Thu Jun 16 13:36:46 2022 UTC fix an off-by-one in tog's draw_file() causing wrong diff output This issue caused empty lines added in diffs to be displayed without leading + in the diff view. Problem found by op@ ok op jamsek commit - b0dd8d2728f3fece5d4c5a57511203e0f9d56ed5 commit + 0ce35b66957ca0c2d19ae9833da0a3e607425d94 blob - 61e731b74f838cf2b8072f3655e745a29b6c673f blob + 1900350b9104586937723169cc85667e743543ad --- tog/tog.c +++ tog/tog.c @@ -3242,7 +3242,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;