summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-15 17:56:29 +0200
committerGitHub <noreply@github.com>2021-09-15 17:56:29 +0200
commitf77b1f4002a5539d73bf8216f5849ceca2f1f864 (patch)
treed4bae425595dc76fe620ff0435692ea37c776d6e /editor
parenta4187c923507a3470947bec95657f6b390f7aa95 (diff)
parentd927d4203c15119292f75c4077f929e9b1e477b6 (diff)
Merge pull request #52352 from williamd67/open-help-editor-at-correct-position
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_help.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 490c8f287f..8c935b846a 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -117,7 +117,7 @@ void EditorHelp::_class_desc_select(const String &p_select) {
} else {
if (table->has(link)) {
// Found in the current page
- class_desc->scroll_to_line((*table)[link]);
+ class_desc->scroll_to_paragraph((*table)[link]);
} else {
if (topic == "class_enum") {
// Try to find the enum in @GlobalScope
@@ -1345,7 +1345,7 @@ void EditorHelp::_help_callback(const String &p_topic) {
}
}
- class_desc->call_deferred(SNAME("scroll_to_line"), line);
+ class_desc->call_deferred(SNAME("scroll_to_paragraph"), line);
}
static void _add_text_to_rt(const String &p_bbcode, RichTextLabel *p_rt) {
@@ -1653,7 +1653,7 @@ Vector<Pair<String, int>> EditorHelp::get_sections() {
void EditorHelp::scroll_to_section(int p_section_index) {
int line = section_line[p_section_index].second;
- class_desc->scroll_to_line(line);
+ class_desc->scroll_to_paragraph(line);
}
void EditorHelp::popup_search() {