Restored old variable name for g:airline#extensions#tabline#excludes

Made check case sensitive
This commit is contained in:
mg979 2018-03-03 23:53:10 +01:00
parent 3ebbc57725
commit 2e2a66c5a0
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function! airline#extensions#tabline#buflist#list()
endif
let s:exclude_buffers = get(g:, 'airline#extensions#tabline#exclude_buffers', [])
let s:exclude_paths = get(g:, 'airline#extensions#tabline#exclude_paths', [])
let s:exclude_paths = get(g:, 'airline#extensions#tabline#excludes', [])
let s:exclude_preview = get(g:, 'airline#extensions#tabline#exclude_preview', 1)
let list = (exists('g:did_bufmru') && g:did_bufmru) ? BufMRUList() : range(1, bufnr("$"))
@ -22,7 +22,7 @@ function! airline#extensions#tabline#buflist#list()
fun! s:ExcludePaths(nr)
let bpath = fnamemodify(bufname(a:nr), ":p")
for f in s:exclude_paths
if bpath =~ fnamemodify(f, ":p") | return 1 | endif
if bpath =~# fnamemodify(f, ":p") | return 1 | endif
endfor
endfun