summary refs log tree commit diff
path: root/menu.c
diff options
context:
space:
mode:
authorokan <okan>2015-06-05 15:01:51 +0000
committerokan <okan>2015-06-05 15:01:51 +0000
commita4cba7e113490fdf691ccc52a1cae6629cdf97b4 (patch)
treebc1032960faffcd5bd5c90d23390b72daee53fea /menu.c
parentf22a3b1065a2b71acfc422cb447445452929b834 (diff)
downloadcwm-a4cba7e113490fdf691ccc52a1cae6629cdf97b4.tar.gz
cwm-a4cba7e113490fdf691ccc52a1cae6629cdf97b4.tar.xz
cwm-a4cba7e113490fdf691ccc52a1cae6629cdf97b4.zip
add a flag to indicate a menu list instead of overloading 'prompt'
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index f9a0354..37515bd 100644
--- a/menu.c
+++ b/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