From: Max Kellermann Date: Sat, 10 Oct 2009 16:37:18 +0000 (+0200) Subject: list_window: removed scrolling from list_window_check_selected() X-Git-Tag: release-0.16~129 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db1783283e873581dd693b85e9edaf18c71dba86;p=ncmpc.git list_window: removed scrolling from list_window_check_selected() This broke CMD_LIST_FIRST. --- diff --git a/src/list_window.c b/src/list_window.c index 90e3ac1..bca8a19 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -69,16 +69,6 @@ list_window_reset(struct list_window *lw) static void list_window_check_selected(struct list_window *lw) { - if (lw->start + lw->rows > lw->length) { - if (lw->length > lw->rows) - lw->start = lw->length - lw->rows; - else - lw->start = 0; - } - - if (lw->selected < lw->start) - lw->selected = lw->start; - if (lw->length == 0) lw->selected = 0; else if (lw->selected >= lw->length)