Ticket #2764: Case sensitive search with SEARCH_TYPE_PCRE

When mc is compiled with SEARCH_TYPE_PCRE (and without SEARCH_TYPE_GLIB,
e.g. on systems with old glib < 2.14) case (in)sensitive search works in opposite.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
vokac 2012-04-05 16:08:58 +03:00 committed by Slava Zanko
parent e63fc08b2a
commit 8c0621b2b6

View File

@ -748,7 +748,7 @@ mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * lc_mc_
if (str_isutf8 (charset) && mc_global.utf8_display) if (str_isutf8 (charset) && mc_global.utf8_display)
{ {
pcre_options |= PCRE_UTF8; pcre_options |= PCRE_UTF8;
if (lc_mc_search->is_case_sensitive) if (!lc_mc_search->is_case_sensitive)
pcre_options |= PCRE_CASELESS; pcre_options |= PCRE_CASELESS;
} }
else else