You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Core] Add case-insensitive String::containsn
This commit is contained in:
@@ -374,7 +374,7 @@ void ScriptEditorQuickOpen::_update_search() {
|
||||
|
||||
for (int i = 0; i < functions.size(); i++) {
|
||||
String file = functions[i];
|
||||
if ((search_box->get_text().is_empty() || file.findn(search_box->get_text()) != -1)) {
|
||||
if ((search_box->get_text().is_empty() || file.containsn(search_box->get_text()))) {
|
||||
TreeItem *ti = search_options->create_item(root);
|
||||
ti->set_text(0, file);
|
||||
if (root->get_first_child() == ti) {
|
||||
|
||||
Reference in New Issue
Block a user