summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorjmb462 <jmb462@gmail.com>2021-08-16 23:12:46 +0200
committerjmb462 <jmb462@gmail.com>2021-08-16 23:12:46 +0200
commit838f0d49e3380500fbfb35733a1ca4409f5ef088 (patch)
tree83424d97869132a9b262abb5737ddb9f2af19730 /editor
parent84b11fbaa674b6e2341de534e93a981378a307ad (diff)
Fix carret not following while debugging (Fix #51754)
Diffstat (limited to 'editor')
-rw-r--r--editor/code_editor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 48f2be450b..39095c42a4 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1429,13 +1429,13 @@ void CodeTextEditor::toggle_inline_comment(const String &delimiter) {
void CodeTextEditor::goto_line(int p_line) {
text_editor->deselect();
text_editor->unfold_line(p_line);
- text_editor->call_deferred(SNAME("cursor_set_line"), p_line);
+ text_editor->call_deferred(SNAME("set_caret_line"), p_line);
}
void CodeTextEditor::goto_line_selection(int p_line, int p_begin, int p_end) {
text_editor->unfold_line(p_line);
- text_editor->call_deferred(SNAME("cursor_set_line"), p_line);
- text_editor->call_deferred(SNAME("cursor_set_column"), p_begin);
+ text_editor->call_deferred(SNAME("set_caret_line"), p_line);
+ text_editor->call_deferred(SNAME("set_caret_column"), p_begin);
text_editor->select(p_line, p_begin, p_line, p_end);
}