mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +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;
|
char *reg_exp;
|
||||||
const char *x;
|
const char *x;
|
||||||
|
|
||||||
x = p->filter ? p->filter : easy_patterns ? "*" : ".";
|
x = p->filter != NULL ? p->filter : easy_patterns ? "*" : ".";
|
||||||
|
|
||||||
reg_exp = input_dialog_help (_("Filter"),
|
reg_exp = input_dialog_help (_("Filter"),
|
||||||
_("Set expression for filtering filenames"),
|
_("Set expression for filtering filenames"),
|
||||||
"[Filter...]", MC_HISTORY_FM_PANEL_FILTER, x, FALSE,
|
"[Filter...]", MC_HISTORY_FM_PANEL_FILTER, x, FALSE,
|
||||||
INPUT_COMPLETE_FILENAMES);
|
INPUT_COMPLETE_FILENAMES);
|
||||||
if (!reg_exp)
|
if (reg_exp != NULL)
|
||||||
return;
|
set_panel_filter_to (p, reg_exp);
|
||||||
set_panel_filter_to (p, reg_exp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user