mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Make sure jumps to the Tagbar window don't end up at the bottom after file loading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user