[awesome-menu] Make completion cyclic

This commit is contained in:
Julien Danjou 2008-03-08 17:02:28 +01:00
parent 6ebf5b5032
commit cd28b2357b
1 changed files with 2 additions and 2 deletions

View File

@ -229,10 +229,10 @@ static void
complete(Bool reverse)
{
item_t *item = NULL;
item_t *(*item_iter)(item_t **, item_t *) = item_list_next;
item_t *(*item_iter)(item_t **, item_t *) = item_list_next_cycle;
if(reverse)
item_iter = item_list_prev;
item_iter = item_list_prev_cycle;
if(globalconf.item_selected)
item = item_iter(&globalconf.items, globalconf.item_selected);