mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-14 21:42:46 +08:00
Don't choke when run from netrw, closes #291
This commit is contained in:
parent
b7f147aabc
commit
9a75c110b7
|
@ -4030,7 +4030,9 @@ function! s:QuitIfOnlyWindow() abort
|
|||
endif
|
||||
endif
|
||||
|
||||
call s:goto_win(prevwinnr, 1)
|
||||
if prevwinnr != tagbarwinnr
|
||||
call s:goto_win(prevwinnr, 1)
|
||||
endif
|
||||
call s:goto_win(curwinnr, 1)
|
||||
endfunction
|
||||
|
||||
|
@ -4039,8 +4041,8 @@ function! s:NextNormalWindow() abort
|
|||
for i in range(1, winnr('$'))
|
||||
let buf = winbufnr(i)
|
||||
|
||||
" skip unlisted buffers
|
||||
if !buflisted(buf)
|
||||
" skip unlisted buffers, except for netrw
|
||||
if !buflisted(buf) && getbufvar(buf, '&filetype') != 'netrw'
|
||||
continue
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user