Make search in RichTextLabel case-insensitive
This commit is contained in:
parent
641c85a54f
commit
b3f83ac115
|
@ -2507,7 +2507,7 @@ bool RichTextLabel::search(const String &p_string, bool p_from_selection, bool p
|
||||||
if (it->type == ITEM_TEXT) {
|
if (it->type == ITEM_TEXT) {
|
||||||
|
|
||||||
ItemText *t = static_cast<ItemText *>(it);
|
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) {
|
if (sp != -1) {
|
||||||
selection.from = it;
|
selection.from = it;
|
||||||
selection.from_char = sp;
|
selection.from_char = sp;
|
||||||
|
|
Loading…
Reference in New Issue