Commit 076d6f05 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix initial bar calculation.

After calculating i (offset in list to top of window), if it's less
than zero, apply it to bar and set i = 0.

Fixes #218
parent 838f6752
Pipeline #1308 passed with stage
in 9 minutes and 55 seconds
......@@ -928,6 +928,10 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if (i < 0) {
*bar += i;
i = 0;
if(i+(height-vbrdrsize-1)>=opts) {
if (*bar > *cur)
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