From 2727af628bfe9795830fa0f742a4bd9713952d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Fri, 29 Jan 2021 04:34:52 -0500 Subject: [PATCH] Change bar fix... Instead of setting bar to zero when possible, set it to the number of displayed options, putting the lightbar at the bottom of the displayed list instead of at the top. --- src/uifc/uifc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index e86bd6a443..2e1f9ac1af 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -931,8 +931,8 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar (*cur)=(*bar); i=(*cur)-(*bar); if(i+(height-vbrdrsize-1)>=opts) { - (*bar)=(height-vbrdrsize)-(opts-*cur); - i=(*cur)-(*bar); + (*bar)=(height-vbrdrsize); + i=(*cur)-(*bar)+1; } } if((*cur)<0) -- GitLab