fix(ui): don't pad empty lines (#768)

This commit is contained in:
Karl Yngve Lervåg 2023-05-02 21:30:28 +02:00 committed by GitHub
parent bb5cc9ef3b
commit b00d6f7102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ function Text:render(buf)
str = str .. segment.str
end
if str:match("^%s*$") then
str = ""
end
table.insert(lines, str)
end