From 38a6c9f6a1f65b32ca22938891ecb4d77d9feaed Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Fri, 4 Mar 2011 02:58:48 +1300 Subject: [PATCH] Make sure jumps to the Tagbar window don't end up at the bottom after file loading --- plugin/tagbar.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index aab4625..6adf52e 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -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