From: Jeffrey Middleton Date: Fri, 27 Feb 2009 08:11:24 +0000 (+0100) Subject: list_window: page up goes too far X-Git-Tag: release-0.14~87 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26c71593c834473044284b4550584d4388f97a68;p=ncmpc.git 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! --- 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); }