1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Check for nonexistent variable, closes #357

This commit is contained in:
Jan Larres
2016-10-31 09:59:20 +13:00
parent 56bee63e17
commit d2961a4677

View File

@@ -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')