Skip to content

Commit 3027f12

Browse files
author
Reed Esau
committed
Support Arglead in Wordy command completion
1 parent d13caf6 commit 3027f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/wordy.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ if !exists('g:wordy#ring')
3939
endif
4040

4141
function! <SID>chooseDict(ArgLead, CmdLine, CursorPos)
42-
return sort(wordy#flatten(g:wordy#ring))
42+
return filter(sort(wordy#flatten(g:wordy#ring)),
43+
\ "stridx(v:val,'".a:ArgLead."') == 0")
4344
endfunction
4445

4546
" Wordy {dict_name}

0 commit comments

Comments
 (0)