From 3dad5bf99ef2069dc5bf7df8db6249da8cfab9fd Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 3 Sep 2014 16:07:52 +0900 Subject: Fix expanding file- prefix --- autoload/sonictemplate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index 3c1d997..84d20d9 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -81,7 +81,7 @@ function! s:get_candidate(fts, lead) let tmp += map(split(globpath(join([tmpldir, ft], '/'), 'file-' . expand('%:t:r') . '*.*'), "\n"), 'fnamemodify(v:val, ":t:r")[5:]') endfor for tmpldir in s:tmpldir - let tmp += sort(map(split(globpath(join([tmpldir, '_'], '/'), 'file-' . a:lead . '*.*'), "\n"), 'fnamemodify(v:val, ":t:r")[5:]')) + let tmp += sort(map(split(globpath(join([tmpldir, '_'], '/'), 'file-' . expand('%:t:r') . '*.*'), "\n"), 'fnamemodify(v:val, ":t:r")[5:]')) endfor endif for tmpldir in s:tmpldir -- cgit v1.2.3-54-g00ecf