From 566992da32243096ffeeab5d14b56d29b46796c1 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 18 Feb 2018 12:05:05 +0300 Subject: [PATCH] Ticket #1620: change file highlighting defaults. Now file highlighting by extension is case insensitive by default. Signed-off-by: Andrew Borodin --- lib/filehighlight/ini-file-read.c | 2 +- misc/filehighlight.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filehighlight/ini-file-read.c b/lib/filehighlight/ini-file-read.c index 96cbb7d6d..96e5cfba0 100644 --- a/lib/filehighlight/ini-file-read.c +++ b/lib/filehighlight/ini-file-read.c @@ -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->search_condition = mc_search_new_len (buf->str, buf->len, DEFAULT_CHARSET); 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_fhl_parse_fill_color_info (mc_filter, fhl, group_name); diff --git a/misc/filehighlight.ini b/misc/filehighlight.ini index 412cbfeac..4a7a41855 100644 --- a/misc/filehighlight.ini +++ b/misc/filehighlight.ini @@ -21,10 +21,10 @@ [core] regexp=^core\\.*\\d*$ + extensions_case=true [temp] extensions=~;$$$;bak;tmp - extensions_case=false regexp=(^#.*|.*~$) [archive]