From 154c248585aa6895f9a6604ea37ed310722dec73 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 11 Dec 2009 17:06:37 -0500 Subject: [PATCH] toggle_date_option: use passed date argument instead of opt_date --- tig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2