diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index c44f1a4..8626011 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1906,13 +1906,13 @@ function! s:RenderContent(...) abort if !empty(tagbar#state#get_current_file(0)) && \ fileinfo.fpath ==# tagbar#state#get_current_file(0).fpath let scrolloff_save = &scrolloff - set scrolloff=0 + setlocal scrolloff=0 call cursor(topline, 1) normal! zt call cursor(saveline, savecol) - let &scrolloff = scrolloff_save + let &l:scrolloff = scrolloff_save else " Make sure as much of the Tagbar content as possible is shown in the " window by jumping to the top after drawing