aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2017-12-19 19:38:43 +0000
committerokan2017-12-19 19:38:43 +0000
commit8ce5d4396dec452d2c0af1eefc88ebcc47f47832 (patch)
tree0294606c05fa78711e210a24148464e30e038064 /menu.c
parent51864faa7356c0dc3bf6b7eed8a904f2023d2b8d (diff)
downloadcwm-8ce5d4396dec452d2c0af1eefc88ebcc47f47832.tar.gz
Use a variable to keep track of flags for menu_filter().
Diffstat (limited to '')
-rw-r--r--menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index f452abb..31614aa 100644
--- a/menu.c
+++ b/menu.c
@@ -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')