Skip to content

Commit

Permalink
fix: clear all namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Jul 5, 2024
1 parent 3bb6966 commit 7f69542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/treesitter-context/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function M.open(bufnr, winid, ctx_ranges, ctx_lines)
return
end

api.nvim_buf_clear_namespace(ctx_bufnr, ns, 0, -1)
api.nvim_buf_clear_namespace(ctx_bufnr, -1, 0, -1)
highlight_contexts(bufnr, ctx_bufnr, ctx_ranges)
copy_extmarks(bufnr, ctx_bufnr, ctx_ranges)
highlight_bottom(ctx_bufnr, win_height - 1, 'TreesitterContextBottom')
Expand Down

0 comments on commit 7f69542

Please sign in to comment.