parent
821372b9cf
commit
5aef1b90e5
@ -35,9 +35,8 @@ endfunction
|
|||||||
function! airline#extensions#tabline#buffers#on()
|
function! airline#extensions#tabline#buffers#on()
|
||||||
augroup airline_tabline_buffers
|
augroup airline_tabline_buffers
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufDelete * call airline#extensions#tabline#buffers#invalidate()
|
autocmd BufDelete * call airline#extensions#tabline#buflist#clean()
|
||||||
autocmd User BufMRUChange call airline#extensions#tabline#buflist#invalidate()
|
autocmd User BufMRUChange call airline#extensions#tabline#buflist#clean()
|
||||||
autocmd User BufMRUChange call airline#extensions#tabline#buffers#invalidate()
|
|
||||||
augroup END
|
augroup END
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -7,6 +7,11 @@ function! airline#extensions#tabline#buflist#invalidate()
|
|||||||
unlet! s:current_buffer_list
|
unlet! s:current_buffer_list
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! airline#extensions#tabline#buflist#clean()
|
||||||
|
call airline#extensions#tabline#buflist#invalidate()
|
||||||
|
call airline#extensions#tabline#buffers#invalidate()
|
||||||
|
endfunction
|
||||||
|
|
||||||
" paths in excludes list
|
" paths in excludes list
|
||||||
function! s:ExcludePaths(nr, exclude_paths)
|
function! s:ExcludePaths(nr, exclude_paths)
|
||||||
let bpath = fnamemodify(bufname(a:nr), ":p")
|
let bpath = fnamemodify(bufname(a:nr), ":p")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user