mirror of
https://github.com/neovim/neovim.git
synced 2026-01-03 18:06:29 +10:00
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.