mirror of
https://github.com/godotengine/godot
synced 2024-11-02 15:10:04 +00:00
Make editor help select shortest (best) instead of first match
This commit is contained in:
parent
edde7190ab
commit
d6a95e154a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue