Merge pull request #33492 from Paulb23/issue_32229_fix_single_line_wrap

Fixed not being able to scroll ending wrapped line
This commit is contained in:
Rémi Verschelde 2019-11-09 18:52:45 +01:00 committed by GitHub
commit 52de63afc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);