From 76a3f8e573594d73c2681071a36368202d3ec690 Mon Sep 17 00:00:00 2001 From: Dawid Marzec Date: Sat, 7 Jan 2023 21:04:23 +0100 Subject: Fix text search in Tree with multiselect --- scene/gui/tree.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index ace3edfcb0..2b0aa2a719 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -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(); } -- cgit v1.2.3