mirror of
https://github.com/preservim/vim-wordy.git
synced 2025-11-10 02:43:48 -05:00
Support Arglead in Wordy command completion
This commit is contained in:
@@ -39,7 +39,8 @@ if !exists('g:wordy#ring')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
|
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
|
endfunction
|
||||||
|
|
||||||
" Wordy {dict_name}
|
" Wordy {dict_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user