浏览代码

Merge pull request #37280 from KoBeWi/n

Make search in RichTextLabel case-insensitive
Rémi Verschelde 5 年之前
父节点
当前提交
e9ecb06cf3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
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;