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:
Andrew Borodin 2018-02-18 12:05:05 +03:00
parent e41af67762
commit 566992da32
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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]