From d6ce995407b9426ba706f83729cf39fb649991f3 Mon Sep 17 00:00:00 2001 From: Otto Modinos Date: Mon, 22 Sep 2014 13:02:41 +0300 Subject: [PATCH] filter completion against ArgLead --- plugin/thematic.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/thematic.vim b/plugin/thematic.vim index ce58b88..98e0a75 100644 --- a/plugin/thematic.vim +++ b/plugin/thematic.vim @@ -47,7 +47,8 @@ if !exists('g:thematic#themes') endif function! 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