summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDawid Wdowiak <dwdw9@wp.pl>2019-01-04 13:09:01 +0100
committerDawid Wdowiak <dawidwdowiak@hotmail.com>2019-06-23 15:58:07 +0200
commit0f14489ecb29519b269cba178f23b6b727fd6445 (patch)
tree3ce779af059ae53e9486ee49934b0ae947b82b80 /scene/gui
parent4d6ad16ac4e07ab0e65a75262b2d7ccd1913c844 (diff)
Center script line when double clicked on error in debugger
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 36d7dad1d3..1e7066e184 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -6452,6 +6452,7 @@ void TextEdit::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_text"), &TextEdit::get_text);
ClassDB::bind_method(D_METHOD("get_line", "line"), &TextEdit::get_line);
+ ClassDB::bind_method(D_METHOD("center_viewport_to_cursor"), &TextEdit::center_viewport_to_cursor);
ClassDB::bind_method(D_METHOD("cursor_set_column", "column", "adjust_viewport"), &TextEdit::cursor_set_column, DEFVAL(true));
ClassDB::bind_method(D_METHOD("cursor_set_line", "line", "adjust_viewport", "can_be_hidden", "wrap_index"), &TextEdit::cursor_set_line, DEFVAL(true), DEFVAL(true), DEFVAL(0));