neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9274532615588d80cfe4305cad075c5a1941fd40
parent b877aa34cf366982bf92aa8b17a8409a1f8eb134
Author: luukvbaal <luukvbaal@gmail.com>
Date:   Sun,  4 May 2025 00:37:02 +0200

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.
Diffstat:
Mruntime/lua/vim/treesitter/highlighter.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/runtime/lua/vim/treesitter/highlighter.lua b/runtime/lua/vim/treesitter/highlighter.lua @@ -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