Closed kevinhwang91 closed 2 years ago
Caused by level1
and level2
both have folded, can't identify level1
have been become line 2 and skip to refresh its virtual text in the decorator.
Solution:
Get the text per line and use textLine as a field to compare. But we should use a buf lines model to cache the result, otherwise using vim.api.nvim_buf_get_lines
directly will get obvious perf regression.
fixed.
Neovim version (nvim -v | head -n1)
master
Operating system/version
ArchLinux
How to reproduce the issue
2ggzczc
O
Expected behavior
Actual behavior