Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lua/image/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ function Image:render(geometry)
local filler = {}
local extmark_opts = { id = self.internal_id, strict = false }
if self.with_virtual_padding then
-- only reserve real height for the extmark, padding is applied during rendering
local total_lines = height
-- reserve image height plus render_offset_top, since the offset
-- shifts the rendered image down without removing any of its rows
local total_lines = total_height
for _ = 0, total_lines - 1 do
filler[#filler + 1] = { { " ", "" } }
end
Expand Down