summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listbox.c1
1 files changed, 1 insertions, 0 deletions
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)