1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-05-04 04:40:53 +02:00

Merge branch 'joegrasse-master'

This commit is contained in:
Jan Larres
2016-09-23 16:11:31 +12:00
+7 -2
View File
@@ -4030,10 +4030,15 @@ function! s:QuitIfOnlyWindow() abort
endif
endif
if prevwinnr != tagbarwinnr
" Check that prevwinnr is still a valid window number
if prevwinnr != tagbarwinnr && prevwinnr <= winnr('$')
call s:goto_win(prevwinnr, 1)
endif
call s:goto_win(curwinnr, 1)
" Check that curwinnr is still a valid window number
if curwinnr <= winnr('$')
call s:goto_win(curwinnr, 1)
endif
endfunction
" s:NextNormalWindow() {{{2