diff --git a/awesome-menu.c b/awesome-menu.c index 2048953b..3a77a40d 100644 --- a/awesome-menu.c +++ b/awesome-menu.c @@ -172,12 +172,10 @@ static void complete(Bool reverse) { item_t *item = NULL; - item_t *(*item_iter)(item_t **, item_t *); + item_t *(*item_iter)(item_t **, item_t *) = item_list_next; if(reverse) item_iter = item_list_prev; - else - item_iter = item_list_next; if(globalconf.item_selected) item = item_iter(&globalconf.items, globalconf.item_selected);