(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 <aborodin@vmail.ru>
This commit is contained in:
Egmont Koblinger 2013-05-25 11:41:55 +04:00 committed by Andrew Borodin
parent aeb8933543
commit 913a984743

View File

@ -1185,19 +1185,19 @@ find_ignore_dir_search (const char *dir)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
static void static void
find_rotate_dash (const WDialog * h, gboolean finish) find_rotate_dash (const WDialog * h, gboolean show)
{ {
static const char rotating_dash[] = "|/-\\"; static const char rotating_dash[4] = "|/-\\";
static unsigned int pos = 0; static size_t pos = 0;
if (verbose) if (verbose)
{ {
const Widget *w = WIDGET (h); const Widget *w = WIDGET (h);
pos = (pos + 1) % 4;
tty_setcolor (h->color[DLG_COLOR_NORMAL]); tty_setcolor (h->color[DLG_COLOR_NORMAL]);
widget_move (h, w->lines - 7, w->cols - 4); 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 (); mc_refresh ();
} }
} }
@ -1261,7 +1261,7 @@ do_search (WDialog * h)
ignore_count), ignore_count); ignore_count), ignore_count);
status_update (msg); status_update (msg);
} }
find_rotate_dash (h, TRUE); find_rotate_dash (h, FALSE);
stop_idle (h); stop_idle (h);
return 0; return 0;
} }
@ -1357,7 +1357,7 @@ do_search (WDialog * h)
; ;
} /* for */ } /* for */
find_rotate_dash (h, FALSE); find_rotate_dash (h, TRUE);
return 1; return 1;
} }