summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/newt/listbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/newt/listbox.c b/mdk-stage1/newt/listbox.c
index cdbf792ca..0048c3782 100644
--- a/mdk-stage1/newt/listbox.c
+++ b/mdk-stage1/newt/listbox.c
@@ -652,7 +652,7 @@ static struct eventResult listboxEvent(newtComponent co, struct event ev) {
li->currItem > li->startShowItem)
li->startShowItem =
li->currItem > li->numItems - li->curHeight ?
- li->startShowItem = li->numItems - li->curHeight :
+ li->numItems - li->curHeight :
li->currItem;
if(li->sb)
newtScrollbarSet(li->sb, li->currItem + 1, li->numItems);