From c8318012a8dd319e2612bf42944758d2837a946a Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Tue, 24 Mar 2020 20:03:09 +0100 Subject: [PATCH] Make search in RichTextLabel case-insensitive (cherry picked from commit b3f83ac11553de753ebd6119f9d183f246788289) --- scene/gui/rich_text_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 6efc908c20..4f3a53fbc6 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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(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;