Support Arglead in Wordy command completion

This commit is contained in:
Reed Esau
2014-09-22 09:05:18 -06:00
parent d13caf6137
commit 3027f129df

View File

@@ -39,7 +39,8 @@ if !exists('g:wordy#ring')
endif
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
return sort(wordy#flatten(g:wordy#ring))
return filter(sort(wordy#flatten(g:wordy#ring)),
\ "stridx(v:val,'".a:ArgLead."') == 0")
endfunction
" Wordy {dict_name}