1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 19:40:27 +01:00

Restore previous window, closes #190

This commit is contained in:
Jan Larres
2014-01-21 15:59:11 +13:00
parent ace45adc51
commit b610fb2f5d

View File

@@ -3740,6 +3740,7 @@ function! s:QuitIfOnlyWindow() abort
endif
let curwinnr = winnr()
let prevwinnr = winnr('#')
call s:goto_win(tagbarwinnr, 1)
" Check if there is more than one window
@@ -3759,6 +3760,7 @@ function! s:QuitIfOnlyWindow() abort
endif
endif
call s:goto_win(prevwinnr, 1)
call s:goto_win(curwinnr, 1)
endfunction