mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Merge pull request #13390 from poke1024/opteditorhelp
Make editor help select shortest (best) instead of first match
This commit is contained in:
commit
6110235bd4
@ -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 New Issue
Block a user