diff options
author | Igor <igorlfs@ufmg.br> | 2024-12-29 12:23:24 -0300 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-12-29 16:24:19 +0000 |
commit | e4bc8b5967d22840c1e52c97acab0f77107cd48c (patch) | |
tree | 3966824de4bcae5929acb42b367970a48d623af8 /runtime/compiler/php.vim | |
parent | 02097e43c8cf33b4302717a489d322ac47fa15c2 (diff) | |
download | rneovim-e4bc8b5967d22840c1e52c97acab0f77107cd48c.tar.gz rneovim-e4bc8b5967d22840c1e52c97acab0f77107cd48c.tar.bz2 rneovim-e4bc8b5967d22840c1e52c97acab0f77107cd48c.zip |
fix(treesitter.foldexpr): only refresh valid buffers
Problem: autocmd to refresh folds always uses the current buffer if the
option type is local. However, the current buffer may not have a parser,
and thus the assert that checks for a parser could fail.
Solution: check if the foldinfo contains the buffer, and only refresh if
so.
Diffstat (limited to 'runtime/compiler/php.vim')
0 files changed, 0 insertions, 0 deletions