mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(image.inline): off-by-one for finding visible images at the last line of the buffer
This commit is contained in:
parent
a9b57b2a7e
commit
04b3a54576
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ end
|
|||
---@param to number 1-indexed inclusive
|
||||
function M:get(from, to)
|
||||
local ret = {} ---@type table<number, snacks.image.Placement>
|
||||
local marks = vim.api.nvim_buf_get_extmarks(self.buf, Snacks.image.placement.ns, { from - 1, 0 }, { to - 1, -1 }, {
|
||||
local marks = vim.api.nvim_buf_get_extmarks(self.buf, Snacks.image.placement.ns, { from - 1, 0 }, { to, -1 }, {
|
||||
overlap = true,
|
||||
hl_name = false,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue