Check for non-empty list is done right after entering into this
function.
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/tui/listbox.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/tui/listbox.c b/src/tui/listbox.c
index 21b6cb1..2a3faa3 100644
--- a/src/tui/listbox.c
+++ b/src/tui/listbox.c
@@ -108,9 +108,6 @@ void tx_operate_listbox(struct scroll_list *list, int *aborted)
switch (ch) {
case KEY_UP:
- if (list->textptr == NULL)
- continue;
-
if (list->textptr->prev_entry != NULL) {
if (row == 0) {
scrollok(list->win, 1);
@@ -123,9 +120,6 @@ void tx_operate_listbox(struct scroll_list *list, int *aborted)
}
break;
case KEY_DOWN:
- if (list->textptr == NULL)
- continue;
-
if (list->textptr->next_entry != NULL) {
if (row == list->height - 3) {
scrollok(list->win, 1);
--
1.7.8.4