commit d2dfcfbf4e1b7906855fce76f1d631c35c5c8a05 from: Stefan Sperling date: Thu Jul 12 21:22:11 2018 UTC don't page-down scroll beyond EOF in tog blame view commit - a026b947176c52261534aa3ad22bdaa6dd10b482 commit + d2dfcfbf4e1b7906855fce76f1d631c35c5c8a05 blob - 66fdd7efeddd00b762c51e3653d459df829f40b3 blob + f025bcdb28e20e67f1cd0e52029a653ca2a59b49 --- tog/tog.c +++ tog/tog.c @@ -1667,7 +1667,8 @@ show_blame_view(const char *path, struct got_object_id case ' ': if (last_displayed_line >= blame.nlines && selected_line < LINES - 2) { - selected_line = LINES - 2; + selected_line = MIN(blame.nlines, + LINES - 2); break; } if (last_displayed_line + LINES - 2 <=