From 2e2a66c5a0ca5f8dcc10d32af77c8d5db0e00bc1 Mon Sep 17 00:00:00 2001 From: mg979 Date: Sat, 3 Mar 2018 23:53:10 +0100 Subject: [PATCH] Restored old variable name for g:airline#extensions#tabline#excludes Made check case sensitive --- autoload/airline/extensions/tabline/buflist.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/tabline/buflist.vim b/autoload/airline/extensions/tabline/buflist.vim index 99fc1e5..ce87aae 100644 --- a/autoload/airline/extensions/tabline/buflist.vim +++ b/autoload/airline/extensions/tabline/buflist.vim @@ -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