use tag_list_next_cycle()
This commit is contained in:
parent
ace5434a15
commit
5f72c9f056
5
tag.c
5
tag.c
|
@ -372,10 +372,7 @@ uicb_tag_viewnext(int screen, char *arg __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
Tag *tag, **curtags = get_current_tags(screen);
|
Tag *tag, **curtags = get_current_tags(screen);
|
||||||
|
|
||||||
if(curtags[0]->next)
|
tag = tag_list_next_cycle(&globalconf.screens[screen].tags, curtags[0]);
|
||||||
tag = curtags[0]->next;
|
|
||||||
else
|
|
||||||
tag = globalconf.screens[screen].tags;
|
|
||||||
|
|
||||||
tag_view(curtags[0], False);
|
tag_view(curtags[0], False);
|
||||||
tag_view(tag, True);
|
tag_view(tag, True);
|
||||||
|
|
Loading…
Reference in New Issue