mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Make sure jumps to the Tagbar window don't end up at the bottom after file loading
This commit is contained in:
parent
82eebf945e
commit
38a6c9f6a1
|
@ -1494,6 +1494,10 @@ function! s:RenderContent(fname, ftype)
|
|||
|
||||
setlocal nomodifiable
|
||||
|
||||
" Go to top of window so jumps to the Tagbar window before any
|
||||
" highlighting is done won't end up at the bottom
|
||||
execute 1
|
||||
|
||||
let &lazyredraw = lazyredraw_save
|
||||
|
||||
if !in_tagbar
|
||||
|
|
Loading…
Reference in New Issue
Block a user