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

Don't skip over unmodifiable buffers, closes #213

Skipping over unmodifiable buffers when checking for Tagbar being the
last window got introduced in #117, but I don't think it is actually
necessary.
This commit is contained in:
Jan Larres
2014-06-25 18:37:51 +12:00
parent 5e392c1b8d
commit 59c9b7ce1c

View File

@@ -3796,12 +3796,7 @@ function! s:NextNormalWindow() abort
let buf = winbufnr(i)
" skip unlisted buffers
if buflisted(buf) == 0
continue
endif
" skip un-modifiable buffers
if getbufvar(buf, '&modifiable') != 1
if !buflisted(buf)
continue
endif