Skip to content
Snippets Groups Projects
Commit 7d08ae36 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't print the up arrow if the list is empty

parent d2acbe52
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1012,7 +1012,7 @@ int ulist(int64_t mode, int left, int top, int width, int *cur, int *bar
textattr(hclr|(bclr<<4));
}
if(bar && (*bar)!=(*cur)) {
if(bar && opts > 0 && (*bar)!=(*cur)) {
gotoxy(s_left+left+lbrdrwidth,s_top+top+tbrdrwidth);
textattr(lclr|(bclr<<4));
putch(api->chars->up_arrow); /* put the up arrow */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment