Merge pull request #71042 from marzecdawid/only-cursor-multiselect-tree-text-search

Fix text search in Tree with multiselect
This commit is contained in:
Rémi Verschelde 2023-01-11 01:12:12 +01:00 committed by GitHub
commit b65c5bccfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4850,7 +4850,11 @@ void Tree::_do_incr_search(const String &p_add) {
return;
}
item->select(col);
if (select_mode == SELECT_MULTI) {
item->set_as_cursor(col);
} else {
item->select(col);
}
ensure_cursor_is_visible();
}