commit 4122562d732f642d4fe4f5926b534508f2336155 from: Stefan Sperling via: Thomas Adam date: Thu Jun 23 14:09:34 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 - bf7e79b3bda88577a127a80a52a869c2766b8d7f commit + 4122562d732f642d4fe4f5926b534508f2336155 blob - 1bbc6ac3ff0891d3af6e5d85173bee936fc262f2 blob + ef11f62ccd355dfd3ed47b46417d6dbebb0c8a6a --- tog/tog.c +++ tog/tog.c @@ -3251,7 +3251,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;