Explorar o código

Make q work with 'buflisted' set

References #208.
Marco Hinz %!s(int64=9) %!d(string=hai) anos
pai
achega
41b53389af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -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