From 226b8c75c271e5f24fb5768f66ff8e8b5b14f256 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 29 May 2012 11:39:24 +0900 Subject: don't specify 'b' for readfile(). close #8 --- autoload/sonictemplate.vim | 4 ++-- 1 file 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 -" 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_:\(.\{-}\)}}' -- cgit v1.2.3-54-g00ecf