diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 4b372e7afd..5fc27c2e3c 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -433,12 +433,11 @@ void EditorHelpIndex::_update_class_list() { while (type != "") { if (filter.is_subsequence_ofi(type)) { - if (to_select.empty()) { + if (to_select.empty() || type.length() < to_select.length()) { to_select = type; } found = true; - break; } type = EditorHelp::get_doc_data()->class_list[type].inherits;