diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-03-24 20:03:09 +0100 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-03-24 20:03:09 +0100 |
commit | b3f83ac11553de753ebd6119f9d183f246788289 (patch) | |
tree | 973c002ad9097cc4d3fa671c96df5c9e762b18c6 | |
parent | 641c85a54f3f9edcfe6c4f7c65830c60d46dd436 (diff) |
Make search in RichTextLabel case-insensitive
-rw-r--r-- | scene/gui/rich_text_label.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index bc1510d6f6..e4651ef473 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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; |