diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2019-10-13 15:34:28 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2019-10-13 15:34:28 +0100 |
commit | d579d2bf1d3d868fc20018893247c210dfcc0550 (patch) | |
tree | f40efc30400ba518ee5768174baa6c713f862d48 /scene | |
parent | aea0761b25276527e2f0099fb8b05a4a879d3c44 (diff) |
Fix undo / redo scrollbar calulations
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index adaff17fbb..44bc5cf749 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -6023,6 +6023,7 @@ void TextEdit::undo() { } } + _update_scrollbars(); if (undo_stack_pos->get().type == TextOperation::TYPE_REMOVE) { cursor_set_line(undo_stack_pos->get().to_line); cursor_set_column(undo_stack_pos->get().to_column); @@ -6058,6 +6059,8 @@ void TextEdit::redo() { break; } } + + _update_scrollbars(); cursor_set_line(undo_stack_pos->get().to_line); cursor_set_column(undo_stack_pos->get().to_column); undo_stack_pos = undo_stack_pos->next(); |