sort airline#extensions#tabline#ignore_bufadd_pat

This commit is contained in:
Christian Brabandt 2019-08-26 15:14:21 +02:00
parent 018688a90f
commit 22f54d8528
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ endfunction
function! airline#util#ignore_buf(name)
let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', '').
\ get(g:, 'airline#extensions#tabline#ignore_bufadd_pat',
\ 'defx|gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!')
\ '!|defx|gundo|nerd_tree|startify|tagbar|undotree|vimfiler')
return match(a:name, pat) > -1
endfunction

View File

@ -390,7 +390,7 @@ window.
Determines a pattern to ignore a buffer name for various things (e.g. the
tabline extension) or the read-only check. Default is
`g:airline#extensions#tabline#ignore_bufadd_pat` (see below) or
`'defx|gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!'` if it is unset.
`'!|defx|gundo|nerd_tree|startify|tagbar|undotree|vimfiler'` if it is unset.
The "!" prevents terminal buffers to appear in the tabline.