From 26c71593c834473044284b4550584d4388f97a68 Mon Sep 17 00:00:00 2001 From: Jeffrey Middleton Date: Fri, 27 Feb 2009 09:11:24 +0100 Subject: [PATCH] list_window: page up goes too far There's a sign error in the page up (previous screen) - instead of going up by one less than the number of rows, it goes up by one more. Patch attached, though it's just a single character change. I'm kind of weirded out that I never noticed this before, since it seems to have been like this forever! --- src/list_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/list_window.c b/src/list_window.c index c098440..17107d6 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -186,7 +186,7 @@ list_window_previous_page(struct list_window *lw) if (lw->rows < 2) return; if (lw->selected > lw->rows - 1) - list_window_set_selected(lw, lw->selected - lw->rows - 1); + list_window_set_selected(lw, lw->selected - lw->rows + 1); else list_window_first(lw); } -- 2.30.2