completion: only return random theme, when it actually matches
This commit is contained in:
parent
e22f735f80
commit
f659a98d50
|
@ -179,7 +179,7 @@ endfunction
|
|||
|
||||
function! airline#util#themes(match)
|
||||
let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:match.'*.vim'), "\n")
|
||||
return sort(map(files, 'fnamemodify(v:val, ":t:r")') + ['random'])
|
||||
return sort(map(files, 'fnamemodify(v:val, ":t:r")') + ('random' =~ a:match ? ['random'] : []))
|
||||
endfunction
|
||||
|
||||
function! airline#util#stl_disabled(winnr)
|
||||
|
|
Loading…
Reference in New Issue