mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(set_panel_filter): fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e185cb1e8c
commit
8bf7e69134
@ -196,15 +196,14 @@ set_panel_filter (WPanel * p)
|
||||
char *reg_exp;
|
||||
const char *x;
|
||||
|
||||
x = p->filter ? p->filter : easy_patterns ? "*" : ".";
|
||||
x = p->filter != NULL ? p->filter : easy_patterns ? "*" : ".";
|
||||
|
||||
reg_exp = input_dialog_help (_("Filter"),
|
||||
_("Set expression for filtering filenames"),
|
||||
"[Filter...]", MC_HISTORY_FM_PANEL_FILTER, x, FALSE,
|
||||
INPUT_COMPLETE_FILENAMES);
|
||||
if (!reg_exp)
|
||||
return;
|
||||
set_panel_filter_to (p, reg_exp);
|
||||
if (reg_exp != NULL)
|
||||
set_panel_filter_to (p, reg_exp);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user