Skip to content

Commit 06ac8bd

Browse files
committed
perf(ui): clear existing extmarks before rendering
1 parent ffcd0ab commit 06ac8bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/view/text.lua

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function Text:render(buf)
6565
end
6666

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

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

0 commit comments

Comments
 (0)