Don't try to jump to winnr 0, ref #244

This commit is contained in:
Jan Larres 2015-01-13 22:32:17 +13:00
parent bfc121dc38
commit fcac7f2936

View File

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