mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-24 00:17:16 +08:00
Locally reset foldmethod and foldexpr in case it's set to something expensive globally
This commit is contained in:
parent
e84eda8437
commit
cd188c6669
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user