diff options
author | okan <okan> | 2015-06-30 18:42:50 +0000 |
---|---|---|
committer | okan <okan> | 2015-06-30 18:42:50 +0000 |
commit | 6b8b8562172c860b8341fc9acf45ee7e2880e45a (patch) | |
tree | ea04f17452a7c1456a8defc0724a8238c6ccd3f4 /menu.c | |
parent | 8515d717ae5bb336e089e9c10a92b499de5d4c81 (diff) | |
download | cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.tar.gz cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.tar.xz cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.zip |
style and spacing nits
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/menu.c b/menu.c index 5a7bef3..0151ecf 100644 --- a/menu.c +++ b/menu.c @@ -72,7 +72,7 @@ static void menu_draw(struct menu_ctx *, struct menu_q *, static void menu_draw_entry(struct menu_ctx *, struct menu_q *, int, int); static int menu_calc_entry(struct menu_ctx *, int, int); -static struct menu *menu_complete_path(struct menu_ctx *); +static struct menu *menu_complete_path(struct menu_ctx *); static int menu_keycode(XKeyEvent *, enum ctltype *, char *); struct menu * @@ -184,6 +184,7 @@ out: static struct menu * menu_complete_path(struct menu_ctx *mc) { + struct screen_ctx *sc = mc->sc; struct menu *mi, *mr; struct menu_q menuq; @@ -191,7 +192,7 @@ menu_complete_path(struct menu_ctx *mc) TAILQ_INIT(&menuq); - if ((mi = menu_filter(mc->sc, &menuq, mc->searchstr, NULL, + if ((mi = menu_filter(sc, &menuq, mc->searchstr, NULL, CWM_MENU_DUMMY, search_match_path_any, NULL)) != NULL) { mr->abort = mi->abort; mr->dummy = mi->dummy; |