Commit Diff
- Commit:
4122562d732f642d4fe4f5926b534508f2336155
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- 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;