mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Search engine: fix search in case sentitive mode
This commit is contained in:
parent
9db1cf46a4
commit
4114a95723
@ -261,7 +261,7 @@ mc_search__normal_found_cond (mc_search_t * mc_search, int current_chr, gsize se
|
|||||||
if (mc_search->is_case_sentitive) {
|
if (mc_search->is_case_sentitive) {
|
||||||
if ((char) current_chr == mc_search_cond->str->str[search_pos])
|
if ((char) current_chr == mc_search_cond->str->str[search_pos])
|
||||||
return (search_pos ==
|
return (search_pos ==
|
||||||
mc_search_cond->len) ? COND__FOUND_CHAR_LAST : COND__FOUND_CHAR;
|
mc_search_cond->len-1) ? COND__FOUND_CHAR_LAST : COND__FOUND_CHAR;
|
||||||
} else {
|
} else {
|
||||||
GString *upp, *low;
|
GString *upp, *low;
|
||||||
upp = (mc_search_cond->upper) ? mc_search_cond->upper : mc_search_cond->str;
|
upp = (mc_search_cond->upper) ? mc_search_cond->upper : mc_search_cond->str;
|
||||||
|
Loading…
Reference in New Issue
Block a user