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

This commit is contained in:
Jan Larres committed 2011-03-04 02:58:48 +13:00
1 parent 82eebf945e
commit 38a6c9f6a1
1 file changed
+4
+4
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