Make search in RichTextLabel case-insensitive

(cherry picked from commit b3f83ac115)
This commit is contained in:
Tomasz Chabora 2020-03-24 20:03:09 +01:00 committed by Rémi Verschelde
parent 6e517f9da3
commit c8318012a8

View file

@ -2502,7 +2502,7 @@ bool RichTextLabel::search(const String &p_string, bool p_from_selection, bool p
if (it->type == ITEM_TEXT) {
ItemText *t = static_cast<ItemText *>(it);
int sp = t->text.find(p_string, charidx);
int sp = t->text.findn(p_string, charidx);
if (sp != -1) {
selection.from = it;
selection.from_char = sp;