mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
EditorHelp: Scroll to the only result found every time
This commit is contained in:
parent
f5918a9d35
commit
eb00eb9a68
1 changed files with 5 additions and 0 deletions
|
|
@ -4999,6 +4999,11 @@ bool FindBar::_search(bool p_search_previous) {
|
|||
results_count = 0;
|
||||
results_count_to_current = 0;
|
||||
}
|
||||
|
||||
if (results_count == 1) {
|
||||
rich_text_label->scroll_to_selection();
|
||||
}
|
||||
|
||||
_update_matches_label();
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue