From fd97187bcddd836bed26ee499f2a6d6b4af0ba29 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 30 Oct 2016 11:42:24 +0100 Subject: Fix visible region after loading list box items Make sure the visible region is updated after loading items, e.g. when the users switches from the full todo list to the "uncompleted items only" view. Signed-off-by: Lukas Fleischer --- src/listbox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/listbox.c b/src/listbox.c index 94c07ba..dad249c 100644 --- a/src/listbox.c +++ b/src/listbox.c @@ -126,6 +126,7 @@ void listbox_load_items(struct listbox *lb, int item_count) else if (lb->item_sel >= item_count) lb->item_sel = item_count - 1; listbox_fix_sel(lb, 1); + listbox_fix_visible_region(lb); } void listbox_draw_deco(struct listbox *lb, int hilt) -- cgit v1.2.3-70-g09d2