mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
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:
parent
40f82f2732
commit
d615e4b9b7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user