From fcac7f2936606697b2db84855bd1e7939576986e Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Tue, 13 Jan 2015 22:32:17 +1300 Subject: [PATCH] Don't try to jump to winnr 0, ref #244 --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 163bb4e..eb0cd91 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -3889,7 +3889,7 @@ function! s:QuitIfOnlyWindow() abort endif let curwinnr = winnr() - let prevwinnr = winnr('#') + let prevwinnr = winnr('#') == 0 ? curwinnr : winnr('#') call s:goto_win(tagbarwinnr, 1) " Check if there is more than one window