Skip to content

Commit

Permalink
fix(ui): issue with rendering empty lines. Fixes #770
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 2, 2023
1 parent 5b7b8ee commit 98ba47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Text:render(buf)
local width = vim.fn.strlen(segment.str)

local extmark = segment.hl
if extmark then
if extmark and width > 0 then
if type(extmark) == "string" then
extmark = { hl_group = extmark, end_col = col + width }
end
Expand Down

0 comments on commit 98ba47e

Please sign in to comment.