From 913a98474393189c17938b4208a5ebd67e67333e Mon Sep 17 00:00:00 2001 From: Egmont Koblinger Date: Sat, 25 May 2013 11:41:55 +0400 Subject: [PATCH] (find_rotate_dash): invert the boolean argument ...to be consistent with the new rotate_dash() behavior and to be intuitive. Signed-off-by: Andrew Borodin --- src/filemanager/find.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/filemanager/find.c b/src/filemanager/find.c index d20728697..2d2ae2dc7 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -1185,19 +1185,19 @@ find_ignore_dir_search (const char *dir) /* --------------------------------------------------------------------------------------------- */ static void -find_rotate_dash (const WDialog * h, gboolean finish) +find_rotate_dash (const WDialog * h, gboolean show) { - static const char rotating_dash[] = "|/-\\"; - static unsigned int pos = 0; + static const char rotating_dash[4] = "|/-\\"; + static size_t pos = 0; if (verbose) { const Widget *w = WIDGET (h); - pos = (pos + 1) % 4; tty_setcolor (h->color[DLG_COLOR_NORMAL]); widget_move (h, w->lines - 7, w->cols - 4); - tty_print_char (finish ? ' ' : rotating_dash[pos]); + tty_print_char (show ? rotating_dash[pos] : ' '); + pos = (pos + 1) % sizeof (rotating_dash); mc_refresh (); } } @@ -1261,7 +1261,7 @@ do_search (WDialog * h) ignore_count), ignore_count); status_update (msg); } - find_rotate_dash (h, TRUE); + find_rotate_dash (h, FALSE); stop_idle (h); return 0; } @@ -1357,7 +1357,7 @@ do_search (WDialog * h) ; } /* for */ - find_rotate_dash (h, FALSE); + find_rotate_dash (h, TRUE); return 1; }