commit 5e37ffcacef69059e5368141449302ddeccccbb6 from: Stefan Sperling date: Mon Feb 25 15:48:56 2019 UTC fix scrolling-up regression in tog tree view commit - 718516bdb5ed72e3efabaeced654c82fa43b33ec commit + 5e37ffcacef69059e5368141449302ddeccccbb6 blob - 8bf29ee3c5e04ab41632c6cea459492705649414 blob + 1d9108278ab82cbb5a734e8598e723c67638f48b --- tog/tog.c +++ tog/tog.c @@ -3382,8 +3382,10 @@ tree_scroll_up(struct tog_view *view, struct got_tree_entry *te, *prev; int i; - if (*first_displayed_entry == NULL) + if (*first_displayed_entry == NULL) { + view_flash(view); return; + } te = SIMPLEQ_FIRST(&entries->head); if (*first_displayed_entry == te) { @@ -3651,10 +3653,6 @@ input_tree_view(struct tog_view **new_view, struct tog break; case 'k': case KEY_UP: - if (s->selected == 0) { - view_flash(view); - break; - } if (s->selected > 0) { s->selected--; if (s->selected == 0)