mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
e63fc08b2a
commit
8c0621b2b6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user