From 69acbe478fc6d5ad68889c7bbee829db2af3aad4 Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Wed, 28 Aug 2019 14:29:20 +0200 Subject: [PATCH] Always scroll one page down if more pages are present Scrolling via page down was previously problematic when - given a terminal small enough to show several pages - and pressing: pgdown + pgup + pgdown ...the last (and any other possible further) pgdown-s were ignored. --- ui_ti.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ui_ti.c b/ui_ti.c index ae11338..fe914b8 100644 --- a/ui_ti.c +++ b/ui_ti.c @@ -356,9 +356,6 @@ jumptoline(Item *entry, ssize_t line, int absolute) if (line > lastitem) line = lastitem; - if (dir->curline == line) - return; - if (lastitem <= plines) { /* all items fit on one page */ dir->curline = line; } else if (line == 0) { /* jump to top */ -- 2.22.0