fix(ui): issue with rendering empty lines. Fixes #770

This commit is contained in:
Folke Lemaitre 2023-05-02 21:47:29 +02:00
parent 5b7b8eecea
commit 98ba47efed
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function Text:render(buf)
local width = vim.fn.strlen(segment.str) local width = vim.fn.strlen(segment.str)
local extmark = segment.hl local extmark = segment.hl
if extmark then if extmark and width > 0 then
if type(extmark) == "string" then if type(extmark) == "string" then
extmark = { hl_group = extmark, end_col = col + width } extmark = { hl_group = extmark, end_col = col + width }
end end