mirror of
https://github.com/godotengine/godot
synced 2024-09-16 00:48:15 +00:00
Merge pull request #10427 from Hinsbart/fix_padding
TextEdit: Fix line padding triggering too early.
This commit is contained in:
commit
9dd8d73482
|
@ -459,7 +459,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…
Reference in a new issue