use tag_list_next_cycle()

This commit is contained in:
Julien Danjou 2008-01-17 18:49:27 +01:00
parent ace5434a15
commit 5f72c9f056
1 changed files with 1 additions and 4 deletions

5
tag.c
View File

@ -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);