diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-27 11:03:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 11:03:13 +0100 |
commit | 899cd3442659f5208a08545b520ae6e6fe2552e7 (patch) | |
tree | c5ab709e12aa95ec25b570061da62f00fbc92876 /editor/plugins/script_editor_plugin.cpp | |
parent | a4f999b7dc1314da752692a19231d0c1a8e70601 (diff) | |
parent | 3eb5e0ac509def467d53df7a729e76743e235e90 (diff) |
Merge pull request #57281 from Rubonnek/rename-subsequence
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 2fc4cda861..f307bbd9c6 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1878,7 +1878,7 @@ void ScriptEditor::_update_members_overview() { for (int i = 0; i < functions.size(); i++) { String filter = filter_methods->get_text(); String name = functions[i].get_slice(":", 0); - if (filter.is_empty() || filter.is_subsequence_ofi(name)) { + if (filter.is_empty() || filter.is_subsequence_ofn(name)) { members_overview->add_item(name); members_overview->set_item_metadata(members_overview->get_item_count() - 1, functions[i].get_slice(":", 1).to_int() - 1); } @@ -2128,7 +2128,7 @@ void ScriptEditor::_update_script_names() { Vector<_ScriptEditorItemData> sedata_filtered; for (int i = 0; i < sedata.size(); i++) { String filter = filter_scripts->get_text(); - if (filter.is_empty() || filter.is_subsequence_ofi(sedata[i].name)) { + if (filter.is_empty() || filter.is_subsequence_ofn(sedata[i].name)) { sedata_filtered.push_back(sedata[i]); } } |