From d2961a46777a98b5272bc60c52db0a81b8b8ea72 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 31 Oct 2016 09:59:20 +1300 Subject: [PATCH] Check for nonexistent variable, closes #357 --- autoload/tagbar.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 5ace4b8..a598849 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1917,7 +1917,8 @@ function! s:OpenWindow(flags) abort " then that means that the window numbers have changed. " Just jump back to the previous window since we won't be able to " restore the window history. - if winnr() == pprevwinnr || winnr() == prevwinnr + if winnr() == prevwinnr + \ || (exists('pprevwinnr') && winnr() == pprevwinnr) call s:goto_win('p') else if exists('pprevwinnr')