oops. fixed trim filter.

This commit is contained in:
mattn
2011-12-16 09:36:06 +09:00
parent c9398065c8
commit 6eff2a965f

View File

@@ -704,7 +704,8 @@ function! zencoding#expandAbbr(mode) range
let lline = getline(n)
let lpart = substitute(lline, '^\s\+', '', '')
if s:zen_useFilter(filters, 't')
let lpart = substitute(lline, '^[0-9.-]\+\s', '', '')
let lpart = substitute(lpart, '^[0-9.-]\+\s\+', '', '')
let lpart = substitute(lpart, '\s\+$', '', '')
endif
let expand = substitute(expand, '\$line'.(n-a:firstline+1).'\$', lpart, 'g')
endfor