[awesome-menu] Cosmetic changes; init var with nice value and remove else statement
This commit is contained in:
parent
86ab2f4764
commit
6c88ddc63e
|
@ -172,12 +172,10 @@ static void
|
||||||
complete(Bool reverse)
|
complete(Bool reverse)
|
||||||
{
|
{
|
||||||
item_t *item = NULL;
|
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)
|
if(reverse)
|
||||||
item_iter = item_list_prev;
|
item_iter = item_list_prev;
|
||||||
else
|
|
||||||
item_iter = item_list_next;
|
|
||||||
|
|
||||||
if(globalconf.item_selected)
|
if(globalconf.item_selected)
|
||||||
item = item_iter(&globalconf.items, globalconf.item_selected);
|
item = item_iter(&globalconf.items, globalconf.item_selected);
|
||||||
|
|
Loading…
Reference in New Issue