diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 90377f0..6133fa5 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -1378,6 +1378,11 @@ function! s:OpenWindow(autoclose) endif setlocal nofoldenable + " Reset fold settings in case a plugin set them globally to something + " expensive. Apparently 'foldexpr' gets executed even if 'foldenable' is + " off, and then for every appended line (like with :put). + setlocal foldmethod& + setlocal foldexpr& setlocal statusline=%!TagbarGenerateStatusline()