fix(treesitter): invalidate conceal_lines marks #33828

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.
This commit is contained in:
luukvbaal
2025-05-04 00:37:02 +02:00
committed by GitHub
parent b877aa34cf
commit 9274532615

View File

@@ -387,6 +387,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