Merge pull request #673 from lynnard/master
fixed bug with excludes for buffers
This commit is contained in:
commit
6387268f13
|
@ -135,16 +135,20 @@ function! s:get_buffer_list()
|
||||||
let cur = bufnr('%')
|
let cur = bufnr('%')
|
||||||
for nr in range(1, bufnr('$'))
|
for nr in range(1, bufnr('$'))
|
||||||
if buflisted(nr) && bufexists(nr)
|
if buflisted(nr) && bufexists(nr)
|
||||||
|
let toadd = 1
|
||||||
for ex in s:excludes
|
for ex in s:excludes
|
||||||
if match(bufname(nr), ex)
|
if match(bufname(nr), ex) >= 0
|
||||||
continue
|
let toadd = 0
|
||||||
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if getbufvar(nr, 'current_syntax') == 'qf'
|
if getbufvar(nr, 'current_syntax') == 'qf'
|
||||||
continue
|
let toadd = 0
|
||||||
endif
|
endif
|
||||||
|
if toadd
|
||||||
call add(buffers, nr)
|
call add(buffers, nr)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
let s:current_buffer_list = buffers
|
let s:current_buffer_list = buffers
|
||||||
|
|
Loading…
Reference in New Issue