From db1783283e873581dd693b85e9edaf18c71dba86 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Oct 2009 18:37:18 +0200 Subject: [PATCH] list_window: removed scrolling from list_window_check_selected() This broke CMD_LIST_FIRST. --- src/list_window.c | 10 ---------- 1 file changed, 10 deletions(-) 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) -- 2.30.2