Skip to content

Commit

Permalink
fix: remove extmark map entry when clearing image
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jun 29, 2023
1 parent 4399f69 commit 4a68eda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/image/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ local create_image = function(path, options, state)
height = nil,
}
vim.api.nvim_buf_del_extmark(instance.buffer, state.extmarks_namespace, numerical_id)
buf_extmark_map[instance.buffer .. ":" .. instance.geometry.y] = nil
end

return instance
Expand Down

0 comments on commit 4a68eda

Please sign in to comment.