oops. fixed normal {foo}.

This commit is contained in:
mattn
2011-11-24 15:09:06 +09:00
parent ba5c040894
commit e123792281

View File

@@ -747,7 +747,7 @@ function! zencoding#expandAbbr(mode) range
" TODO: on windows, %z/%Z is 'Tokyo(Standard)'
let expand = substitute(expand, '${datetime}', strftime("%Y-%m-%dT%H:%M:%S %z"), 'g')
endif
if a:firstline == a:lastline
if a:mode == 2 && a:firstline == a:lastline
let line = getline('.')
call setline(line('.'), line[0:col('.')].substitute(expand, '>\n\s*', '>', 'g').line[col('.'):])
else