TextEdit: Fix line padding.

off-by-one error in the line count calculation.

Fixes #10411
This commit is contained in:
Andreas Haas 2017-08-18 22:11:45 +02:00
parent 3f2d806b02
commit 58b2f441a7
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

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