From 5f72c9f0560ab67120c60cbb3bc7b7789aeb473b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 17 Jan 2008 18:49:27 +0100 Subject: [PATCH] use tag_list_next_cycle() --- tag.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tag.c b/tag.c index dea918fe..6d7e30c6 100644 --- a/tag.c +++ b/tag.c @@ -372,10 +372,7 @@ uicb_tag_viewnext(int screen, char *arg __attribute__ ((unused))) { Tag *tag, **curtags = get_current_tags(screen); - if(curtags[0]->next) - tag = curtags[0]->next; - else - tag = globalconf.screens[screen].tags; + tag = tag_list_next_cycle(&globalconf.screens[screen].tags, curtags[0]); tag_view(curtags[0], False); tag_view(tag, True);