From e5b18cea630ae51061f33de3135240fbb1a965cc Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Mon, 7 Oct 2019 19:17:32 +0100 Subject: [PATCH] Fixed inserting text at caret not updating scrollbar size --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c0b0944e47e..a22ddb265b0 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4071,6 +4071,7 @@ void TextEdit::_insert_text_at_cursor(const String &p_text) { int new_column, new_line; _insert_text(cursor.line, cursor.column, p_text, &new_line, &new_column); + _update_scrollbars(); cursor_set_line(new_line); cursor_set_column(new_column);