aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2015-06-30 18:42:50 +0000
committerokan2015-06-30 18:42:50 +0000
commitc945e52f347e972876d0ee015c01ef60d73bccfa (patch)
treebdf35a89e391876cb74acca6c10178c5e4993f16 /menu.c
parente486eca576ea66b79546c532715971cf6e56cdfe (diff)
downloadcwm-c945e52f347e972876d0ee015c01ef60d73bccfa.tar.gz
style and spacing nits
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index a21bb7d..c9106e8 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.84 2015/06/26 17:17:46 okan Exp $
+ * $OpenBSD: menu.c,v 1.85 2015/06/30 18:42:50 okan Exp $
*/
#include <sys/types.h>
@@ -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;