diff options
author | mattn <mattn.jp@gmail.com> | 2012-05-29 11:39:24 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-05-29 11:39:24 +0900 |
commit | 226b8c75c271e5f24fb5768f66ff8e8b5b14f256 (patch) | |
tree | e93456ae963713d7aff3fe37cc4ce047075240cb | |
parent | c1be3dbafdfef0ccb0ed3c569bcc493791c8aa87 (diff) | |
download | vim-sonictemplate-226b8c75c271e5f24fb5768f66ff8e8b5b14f256.tar.gz vim-sonictemplate-226b8c75c271e5f24fb5768f66ff8e8b5b14f256.tar.bz2 vim-sonictemplate-226b8c75c271e5f24fb5768f66ff8e8b5b14f256.zip |
don't specify 'b' for readfile(). close #8
-rw-r--r-- | autoload/sonictemplate.vim | 4 |
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_:\(.\{-}\)}}' |