From 58b2f441a70493ed561a017328b0ae079639413f Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Fri, 18 Aug 2017 22:11:45 +0200 Subject: [PATCH] TextEdit: Fix line padding. off-by-one error in the line count calculation. Fixes #10411 --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 324c0cd0d15..492dcd9ac18 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -436,7 +436,7 @@ void TextEdit::_notification(int p_what) { int line_number_char_count = 0; { - int lc = text.size() + 1; + int lc = text.size(); cache.line_number_w = 0; while (lc) { cache.line_number_w += 1;