Make q work with 'buflisted' set

References #208.
This commit is contained in:
Marco Hinz 2016-03-17 12:47:22 +01:00
parent 61daf3ab19
commit 41b53389af

View file

@ -739,7 +739,7 @@ endfunction
" Function: s:close {{{1
function! s:close() abort
if len(filter(range(0, bufnr('$')), 'buflisted(v:val)'))
if len(filter(range(0, bufnr('$')), 'buflisted(v:val)')) - &buflisted
if bufloaded(bufnr('#')) && bufnr('#') != bufnr('%')
buffer #
else