commit 0e762e67cef9321f74d4fcec9f27811c9a7fbd9d from: Mark Jamsek via: Thomas Adam date: Sat Jan 14 16:45:29 2023 UTC tog: fix {first,last}_displayed_line dead store Both are already assigned just above in open_diff_view() ok op@ commit - 48a59395643b13d6ebd067b1e4fcb8b5b373db1f commit + 0e762e67cef9321f74d4fcec9f27811c9a7fbd9d blob - 9678f86949c9fae1f9fb07b6fe0552191f7ba9e8 blob + 81b177b04042f90b810ce232ee3ceb8b0c6766d9 --- tog/tog.c +++ tog/tog.c @@ -5065,8 +5065,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;