src/filemanager/find.c: test verbose flag before call of find_rotate_dash().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-07-06 12:35:14 +03:00
parent 40f82f2732
commit d615e4b9b7

View File

@ -1249,9 +1249,6 @@ find_rotate_dash (const WDialog * h, gboolean show)
static const char rotating_dash[4] = "|/-\\"; static const char rotating_dash[4] = "|/-\\";
const Widget *w = CONST_WIDGET (h); const Widget *w = CONST_WIDGET (h);
if (!verbose)
return;
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 (show ? rotating_dash[pos] : ' '); tty_print_char (show ? rotating_dash[pos] : ' ');
@ -1317,6 +1314,7 @@ do_search (WDialog * h)
ignore_count), ignore_count); ignore_count), ignore_count);
status_update (msg); status_update (msg);
} }
if (verbose)
find_rotate_dash (h, FALSE); find_rotate_dash (h, FALSE);
stop_idle (h); stop_idle (h);
return 0; return 0;
@ -1403,6 +1401,7 @@ do_search (WDialog * h)
; ;
} /* for */ } /* for */
if (verbose)
find_rotate_dash (h, TRUE); find_rotate_dash (h, TRUE);
return 1; return 1;