mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
glob return results without removing wildignore matches
Ignore 'wildignore' and 'suffixes' when globbing for themes and extensions. This can be a problem when you have a wildignore containing *.vim. closes #2375
This commit is contained in:
committed by
Christian Brabandt
parent
76e42284e9
commit
f7cbf8c429
@@ -182,7 +182,7 @@ function! airline#util#doautocmd(event)
|
||||
endfunction
|
||||
|
||||
function! airline#util#themes(match)
|
||||
let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:match.'*.vim'), "\n")
|
||||
let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:match.'*.vim', 1), "\n")
|
||||
return sort(map(files, 'fnamemodify(v:val, ":t:r")') + ('random' =~ a:match ? ['random'] : []))
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user