summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-08-18 22:11:45 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-08-18 22:12:07 +0200
commit58b2f441a70493ed561a017328b0ae079639413f (patch)
tree18cf94d2bf1d19fa65a0fbd65da845864ce94b61 /scene
parent3f2d806b02b222b8678783541523d6d3417fee25 (diff)
TextEdit: Fix line padding.
off-by-one error in the line count calculation. Fixes #10411
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 324c0cd0d1..492dcd9ac1 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;