mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
TextEdit: Fix line padding.
off-by-one error in the line count calculation.
Fixes #10411
(cherry picked from commit 58b2f441a7)
This commit is contained in:
parent
5bcfe43a14
commit
e41b44747c
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue