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
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
" Commands