aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-09-03 16:07:52 +0900
committermattn <mattn.jp@gmail.com>2014-09-03 16:07:52 +0900
commit3dad5bf99ef2069dc5bf7df8db6249da8cfab9fd (patch)
treed52b30661230ad53fa34d677f18fcddef49c3edf /autoload
parent7c00a8e66a395e067cebafe83577977d2734e70f (diff)
downloadvim-sonictemplate-3dad5bf99ef2069dc5bf7df8db6249da8cfab9fd.tar.gz
vim-sonictemplate-3dad5bf99ef2069dc5bf7df8db6249da8cfab9fd.tar.bz2
vim-sonictemplate-3dad5bf99ef2069dc5bf7df8db6249da8cfab9fd.zip
Fix expanding file- prefix
Diffstat (limited to 'autoload')
-rw-r--r--autoload/sonictemplate.vim2
1 files changed, 1 insertions, 1 deletions
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