Commit dc2428b0 authored by rswindell's avatar rswindell
Browse files

Allow the 'cur' argument to uifc.list() to be NULL.

parent 4ac0aac8
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -637,6 +637,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
int tbrdrwidth=3;
int bbrdrwidth=1;
int title_len;
int tmpcur=0;
struct mouse_event mevnt;
char *title=NULL;
int a,b,c,longopt;
......@@ -644,6 +645,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
int gotkey;
uchar hclr,lclr,bclr,cclr,lbclr;
if(cur==NULL) cur=&tmpcur;
api->exit_flags = 0;
hclr=api->hclr;
lclr=api->lclr;
......
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