mirror of
https://github.com/preservim/tagbar.git
synced 2024-11-26 18:33:36 +08:00
Don't try to jump to winnr 0, ref #244
This commit is contained in:
parent
bfc121dc38
commit
fcac7f2936
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user