Commit 2da95710 authored by Deucе's avatar Deucе 👌🏾
Browse files

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.
parent 1bddfdab
Pipeline #1245 passed with stage
in 9 minutes and 31 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment