Skip to content

Commit bf10def

Browse files
committed
Merge pull request #113433 from arkology/editor-help-single-focus
`EditorHelp`: Scroll to the only result found every time
2 parents 3c73bed + eb00eb9 commit bf10def

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/doc/editor_help.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4999,6 +4999,11 @@ bool FindBar::_search(bool p_search_previous) {
49994999
results_count = 0;
50005000
results_count_to_current = 0;
50015001
}
5002+
5003+
if (results_count == 1) {
5004+
rich_text_label->scroll_to_selection();
5005+
}
5006+
50025007
_update_matches_label();
50035008

50045009
return ret;

0 commit comments

Comments
 (0)