diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2019-11-09 16:45:44 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2019-11-09 16:45:44 +0000 |
commit | 25cba699f071bf46fa0f5fe1c3912b17a00a7c15 (patch) | |
tree | c90146941aea3fe7df2d152151d65aa224944e71 /scene/gui/text_edit.cpp | |
parent | 0ab0d11c17dd58ac35335cabd032409c42a41a94 (diff) | |
download | redot-engine-25cba699f071bf46fa0f5fe1c3912b17a00a7c15.tar.gz |
Fixed not being able to scroll ending wrapped line
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c818633f48..8ddc31745e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4585,7 +4585,7 @@ void TextEdit::_scroll_moved(double p_to_val) { int v_scroll_i = floor(get_v_scroll()); int sc = 0; int n_line; - for (n_line = 0; n_line < text.size() - 1; n_line++) { + for (n_line = 0; n_line < text.size(); n_line++) { if (!is_line_hidden(n_line)) { sc++; sc += times_line_wraps(n_line); |