From 82eebf945e407a563d5ec361a205fcd902f1d837 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Wed, 2 Mar 2011 23:31:58 +1300 Subject: [PATCH] Don't do any highlighting if there's no tag above the cursor --- plugin/tagbar.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 1828974..aab4625 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -1613,9 +1613,8 @@ function! s:HighlightTag(fname) match none + " No tag above cursor position so don't do anything if tagline == 0 - execute 1 - call winline() execute prevwinnr . 'wincmd w' let &eventignore = eventignore_save redraw