Skip to content

Commit

Permalink
perf(ui): clear existing extmarks before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 20, 2022
1 parent ffcd0ab commit 06ac8bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/view/text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function Text:render(buf)
end

vim.api.nvim_buf_set_lines(buf, 0, -1, false, lines)
vim.api.nvim_buf_clear_namespace(buf, Config.ns, 0, -1)

for l, line in ipairs(self._lines) do
local col = self.padding
Expand Down

0 comments on commit 06ac8bd

Please sign in to comment.