aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/sonictemplate.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index 96639ff..b9bee73 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -1,7 +1,7 @@
"=============================================================================
" sonictemplate.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 28-May-2012.
+" Last Change: 29-May-2012.
let s:save_cpo = &cpo
set cpo&vim
@@ -71,7 +71,7 @@ function! sonictemplate#apply(name, mode) abort
echomsg 'Template '.name.' is not exists.'
return
endif
- let c = join(readfile(f, "b"), "\n")
+ let c = join(readfile(f), "\n")
let c = substitute(c, '{{_name_}}', expand('%:t:r:'), 'g')
let tmp = c
let mx = '{{_input_:\(.\{-}\)}}'