diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c48d8bb1def..3566c1bfc49 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -336,7 +336,7 @@ void TextEdit::_update_scrollbars() { v_scroll->set_val(cursor.line_ofs); } else { - + cursor.line_ofs = 0; v_scroll->hide(); }