mirror of
https://github.com/gryf/tagbar.git
synced 2026-10-07 06:00:39 +02:00
Make sure jumps to the Tagbar window don't end up at the bottom after file loading
This commit is contained in:
1 parent
82eebf945e
commit
38a6c9f6a1
1 file changed
+4
@@ -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