summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Marzec <marzecdawid@gmail.com>2023-01-07 21:04:23 +0100
committerDawid Marzec <marzecdawid@gmail.com>2023-01-07 21:04:23 +0100
commit76a3f8e573594d73c2681071a36368202d3ec690 (patch)
tree4bed440580eb798c4b961b4e5f28d42fad73700b
parentfcba87e696d58912838d8a4a6987b10efa28e78f (diff)
Fix text search in Tree with multiselect
-rw-r--r--scene/gui/tree.cpp6
1 files changed, 5 insertions, 1 deletions
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();
}