mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 12:00:23 +01:00
Locally reset foldmethod and foldexpr in case it's set to something expensive globally
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user