Merge pull request #15 from otommod/completion-fix

filter completion against ArgLead
This commit is contained in:
Reed Esau
2014-09-22 08:59:17 -06:00

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