mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Don't try to jump to winnr 0, ref #244
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user