commit 2e6043e87514d1a49e1c8a037d7c4e20869b07ad from: Mark Jamsek date: Tue Jan 10 14:00:51 2023 UTC tog: fix {first,last}_displayed_line dead store Both are already assigned just above in open_diff_view() ok op@ commit - 910d235d362fb7951e997ce08e3dfb4b8cb24c5d commit + 2e6043e87514d1a49e1c8a037d7c4e20869b07ad blob - 1e45e74bb81aeea0621ba64c6624713e630ee084 blob + 3bf0246d75b75fc92ca14ca210759bab8aebcdc2 --- tog/tog.c +++ tog/tog.c @@ -5060,8 +5060,6 @@ open_diff_view(struct tog_view *view, struct got_objec goto done; } - s->first_displayed_line = 1; - s->last_displayed_line = view->nlines; s->diff_context = diff_context; s->ignore_whitespace = ignore_whitespace; s->force_text_diff = force_text_diff;