Make sure jumps to the Tagbar window don't end up at the bottom after file loading

This commit is contained in:
Jan Larres 2011-03-04 02:58:48 +13:00
parent 82eebf945e
commit 38a6c9f6a1

View File

@ -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