From: Jonas Fonseca Date: Fri, 11 Dec 2009 22:06:37 +0000 (-0500) Subject: toggle_date_option: use passed date argument instead of opt_date X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=154c248585aa6895f9a6604ea37ed310722dec73;p=tig.git toggle_date_option: use passed date argument instead of opt_date --- diff --git a/tig.c b/tig.c index 6957ff5..935f447 100644 --- a/tig.c +++ b/tig.c @@ -2458,9 +2458,9 @@ toggle_date_option(enum date *date) "short" }; - opt_date = (opt_date + 1) % ARRAY_SIZE(help); + *date = (*date + 1) % ARRAY_SIZE(help); redraw_display(FALSE); - report("Displaying %s dates", help[opt_date]); + report("Displaying %s dates", help[*date]); } static void