mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix(ui): issue with rendering empty lines. Fixes #770
This commit is contained in:
parent
5b7b8eecea
commit
98ba47efed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue