mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(treesitter): invalidate conceal_lines marks (#33832)
Problem: Spliced conceal_lines marks after changing the buffer text are
left valid, concealing lines that shouldn't be.
Solution: Set the `invalidate` extmark property.
(cherry picked from commit 9274532615
)
This commit is contained in:
@@ -380,6 +380,7 @@ local function on_line_impl(self, buf, line, on_spell, on_conceal)
|
||||
api.nvim_buf_set_extmark(buf, ns, start_row, 0, {
|
||||
end_line = end_row,
|
||||
conceal_lines = '',
|
||||
invalidate = true,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user