diff options
author | mattn <mattn.jp@gmail.com> | 2012-06-11 21:54:37 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-06-11 21:54:37 +0900 |
commit | 118983c436f4239594c605fbc4f3e6e2d1d9103b (patch) | |
tree | 30f0645afcf961166fe5d7c220484ae54b4accde | |
parent | 6c46469120f08065627cb33a58281e9dc0969574 (diff) | |
download | vim-sonictemplate-118983c436f4239594c605fbc4f3e6e2d1d9103b.tar.gz vim-sonictemplate-118983c436f4239594c605fbc4f3e6e2d1d9103b.tar.bz2 vim-sonictemplate-118983c436f4239594c605fbc4f3e6e2d1d9103b.zip |
oops.
-rw-r--r-- | autoload/sonictemplate.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index e15446f..947d85d 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -52,7 +52,8 @@ function! sonictemplate#get_filetype() return ft endfunction -function! s:get_candidate(fts) +function! s:get_candidate(fts, lead) + let tmp = [] let prefix = search('[^ \t]', 'wn') ? 'snip-' : 'base-' for tmpldir in s:tmpldir for ft in a:fts @@ -75,11 +76,11 @@ function! s:get_candidate(fts) endfunction function! sonictemplate#complete(lead, cmdline, curpos) abort - return s:get_candidate([&ft, sonictemplate#get_filetype()]) + return s:get_candidate([&ft, sonictemplate#get_filetype()], a:lead) endfunction function! sonictemplate#complete_intelligent(lead, cmdline, curpos) abort - return s:get_candidate([sonictemplate#get_filetype(), &ft]) + return s:get_candidate([sonictemplate#get_filetype(), &ft], a:lead) endfunction function! sonictemplate#apply(name, mode, ...) abort |