commit 1831ac029c57d391f90a06e6aaf7f30e6b855ff7 from: Christian Weisgerber date: Mon Mar 23 16:39:24 2020 UTC Subtract the status line from the number of lines to page up/down in the log view. ok stsp@ commit - 2ce013e7b4e59784635e0d0fe7d81341651ff3d3 commit + 1831ac029c57d391f90a06e6aaf7f30e6b855ff7 blob - aa1595fa7c1bda2eb019f9949051396fed7fc58a blob + 76812bcee5c6b3e3d846497a414b377a61a84c92 --- tog/tog.c +++ tog/tog.c @@ -2273,7 +2273,7 @@ input_log_view(struct tog_view **new_view, struct tog_ break; } scroll_up(view, &s->first_displayed_entry, - view->nlines, &s->commits); + view->nlines - 1, &s->commits); break; case 'j': case KEY_DOWN: @@ -2299,7 +2299,7 @@ input_log_view(struct tog_view **new_view, struct tog_ if (first == NULL) break; err = scroll_down(view, &s->first_displayed_entry, - view->nlines, &s->last_displayed_entry, + view->nlines - 1, &s->last_displayed_entry, &s->commits, &s->thread_args.log_complete, &s->thread_args.commits_needed, &s->thread_args.need_commits);