add a flag to indicate a menu list instead of overloading 'prompt'

This commit is contained in:
okan
2015-06-05 15:01:51 +00:00
parent f22a3b1065
commit a4cba7e113
3 changed files with 7 additions and 4 deletions

4
menu.c
View File

@@ -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