mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #1620: change file highlighting defaults.
Now file highlighting by extension is case insensitive by default. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e41af67762
commit
566992da32
@ -160,7 +160,7 @@ mc_fhl_parse_get_extensions (mc_fhl_t * fhl, const gchar * group_name)
|
|||||||
mc_filter->type = MC_FLHGH_T_FREGEXP;
|
mc_filter->type = MC_FLHGH_T_FREGEXP;
|
||||||
mc_filter->search_condition = mc_search_new_len (buf->str, buf->len, DEFAULT_CHARSET);
|
mc_filter->search_condition = mc_search_new_len (buf->str, buf->len, DEFAULT_CHARSET);
|
||||||
mc_filter->search_condition->is_case_sensitive =
|
mc_filter->search_condition->is_case_sensitive =
|
||||||
mc_config_get_bool (fhl->config, group_name, "extensions_case", TRUE);
|
mc_config_get_bool (fhl->config, group_name, "extensions_case", FALSE);
|
||||||
mc_filter->search_condition->search_type = MC_SEARCH_T_REGEX;
|
mc_filter->search_condition->search_type = MC_SEARCH_T_REGEX;
|
||||||
|
|
||||||
mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
|
mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
[core]
|
[core]
|
||||||
regexp=^core\\.*\\d*$
|
regexp=^core\\.*\\d*$
|
||||||
|
extensions_case=true
|
||||||
|
|
||||||
[temp]
|
[temp]
|
||||||
extensions=~;$$$;bak;tmp
|
extensions=~;$$$;bak;tmp
|
||||||
extensions_case=false
|
|
||||||
regexp=(^#.*|.*~$)
|
regexp=(^#.*|.*~$)
|
||||||
|
|
||||||
[archive]
|
[archive]
|
||||||
|
Loading…
Reference in New Issue
Block a user