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

Ok, let's just never change cur if it's valid? Ok?

Now the default bar is INT_MAX, so it always gets corrected when
left as default.

This is good.
parent 2da95710
Pipeline #1248 passed with stage
in 9 minutes and 23 seconds
......@@ -346,6 +346,7 @@ static JSBool js_list_ctx_constructor(JSContext *cx, uintN argc, jsval *arglist)
JS_ReportError(cx, "JS_SetPrivate failed");
return JS_FALSE;
p->bar = INT_MAX;
js_SyncResolve(cx, obj, NULL, js_uifc_list_class_properties, NULL, NULL, 0);
js_DescribeSyncObject(cx, obj, "Class used to retain UIFC list menu context", 317);
......@@ -927,11 +927,11 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if(i+(height-vbrdrsize-1)>=opts) {
if (*bar > *cur)
*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