make exclude pattern works when there are more than one tabpages
This commit is contained in:
parent
be5bda1f1d
commit
ce0e8d7e82
|
@ -41,6 +41,8 @@ function! airline#extensions#tabline#tabs#get()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let s:filtered_buflist = airline#extensions#tabline#buflist#list()
|
||||||
|
|
||||||
let b = airline#extensions#tabline#new_builder()
|
let b = airline#extensions#tabline#new_builder()
|
||||||
|
|
||||||
call airline#extensions#tabline#add_label(b, 'tabs', 0)
|
call airline#extensions#tabline#add_label(b, 'tabs', 0)
|
||||||
|
@ -52,8 +54,10 @@ function! airline#extensions#tabline#tabs#get()
|
||||||
let group = 'airline_tabsel'
|
let group = 'airline_tabsel'
|
||||||
if g:airline_detect_modified
|
if g:airline_detect_modified
|
||||||
for bi in tabpagebuflist(curtab)
|
for bi in tabpagebuflist(curtab)
|
||||||
if getbufvar(bi, '&modified')
|
if index(s:filtered_buflist,bi) != -1
|
||||||
let group = 'airline_tabmod'
|
if getbufvar(bi, '&modified')
|
||||||
|
let group = 'airline_tabmod'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
@ -87,8 +91,10 @@ function! airline#extensions#tabline#tabs#get()
|
||||||
if get(g:, 'airline#extensions#tabline#show_splits', 1) == 1
|
if get(g:, 'airline#extensions#tabline#show_splits', 1) == 1
|
||||||
let buffers = tabpagebuflist(curtab)
|
let buffers = tabpagebuflist(curtab)
|
||||||
for nr in buffers
|
for nr in buffers
|
||||||
let group = airline#extensions#tabline#group_of_bufnr(buffers, nr) . "_right"
|
if index(s:filtered_buflist,nr) != -1
|
||||||
call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)')
|
let group = airline#extensions#tabline#group_of_bufnr(buffers, nr) . "_right"
|
||||||
|
call b.add_section_spaced(group, '%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)')
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
if get(g:, 'airline#extensions#tabline#show_buffers', 1)
|
if get(g:, 'airline#extensions#tabline#show_buffers', 1)
|
||||||
call airline#extensions#tabline#add_label(b, 'buffers', 1)
|
call airline#extensions#tabline#add_label(b, 'buffers', 1)
|
||||||
|
|
Loading…
Reference in New Issue