From 2281efbc8921cfb2db47bb9fbee3b8f7b12cd712 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 22 Mar 2011 11:03:05 +0000 Subject: move the default case to the end. ok oga@ --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 6172cf8..1ece020 100644 --- a/menu.c +++ b/menu.c @@ -150,8 +150,6 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, XWindowEvent(X_Dpy, sc->menuwin, evmask, &e); switch (e.type) { - default: - break; case KeyPress: if ((mi = menu_handle_key(&e, &mc, menuq, &resultq)) != NULL) @@ -168,6 +166,8 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, != NULL) goto out; break; + default: + break; } } out: -- cgit v1.2.3-2-gb3c3