add a flag to indicate a menu list instead of overloading 'prompt'
This commit is contained in:
4
menu.c
4
menu.c
@@ -109,9 +109,11 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt,
|
||||
mc.hasprompt = 1;
|
||||
} else {
|
||||
evmask = MENUMASK;
|
||||
mc.list = 1;
|
||||
}
|
||||
|
||||
if (mc.flags & CWM_MENU_LIST)
|
||||
mc.list = 1;
|
||||
|
||||
if (initial != NULL)
|
||||
(void)strlcpy(mc.searchstr, initial, sizeof(mc.searchstr));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user