diff options
author | okan | 2017-12-19 19:38:43 +0000 |
---|---|---|
committer | okan | 2017-12-19 19:38:43 +0000 |
commit | 8ce5d4396dec452d2c0af1eefc88ebcc47f47832 (patch) | |
tree | 0294606c05fa78711e210a24148464e30e038064 /menu.c | |
parent | 51864faa7356c0dc3bf6b7eed8a904f2023d2b8d (diff) | |
download | cwm-8ce5d4396dec452d2c0af1eefc88ebcc47f47832.tar.gz |
Use a variable to keep track of flags for menu_filter().
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.104 2017/12/12 15:37:16 okan Exp $ + * $OpenBSD: menu.c,v 1.105 2017/12/19 19:38:43 okan Exp $ */ #include <sys/types.h> @@ -179,13 +179,14 @@ menu_complete_path(struct menu_ctx *mc) struct screen_ctx *sc = mc->sc; struct menu *mi, *mr; struct menu_q menuq; + int mflags = (CWM_MENU_DUMMY); mr = xcalloc(1, sizeof(*mr)); TAILQ_INIT(&menuq); - if ((mi = menu_filter(sc, &menuq, mc->searchstr, NULL, - (CWM_MENU_DUMMY), search_match_path, search_print_text)) != NULL) { + if ((mi = menu_filter(sc, &menuq, mc->searchstr, NULL, mflags, + search_match_path, search_print_text)) != NULL) { mr->abort = mi->abort; mr->dummy = mi->dummy; if (mi->text[0] != '\0') |