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:
luukvbaal
2025-05-04 01:41:23 +02:00
committed by GitHub
parent 472d41b5b6
commit 3b3cf1d7ef

View File

@@ -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