filter completion against ArgLead

This commit is contained in:
Otto Modinos
2014-09-22 13:02:41 +03:00
parent ac49034cbf
commit d6ce995407

View File

@@ -47,7 +47,8 @@ if !exists('g:thematic#themes')
endif endif
function! <SID>chooseTheme(ArgLead, CmdLine, CursorPos) function! <SID>chooseTheme(ArgLead, CmdLine, CursorPos)
return sort(keys(g:thematic#themes)) return filter(sort(keys(g:thematic#themes)),
\ "stridx(v:val,'".a:ArgLead."') == 0")
endfunction endfunction
" Commands " Commands