Merge pull request #37280 from KoBeWi/n

Make search in RichTextLabel case-insensitive
This commit is contained in:
Rémi Verschelde 2020-03-24 21:31:57 +01:00 committed by GitHub
commit e9ecb06cf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2507,7 +2507,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;