oops, fix the regex (clear out everything before matched tags)

This commit is contained in:
Jesse Luehrs
2011-08-10 01:20:40 -05:00
committed by mattn
parent 25ecc2ca99
commit 8f290b913e

View File

@@ -692,7 +692,7 @@ function! zencoding#expandAbbr(mode) range
else else
let part = matchstr(line, '\(\S.*\)$') let part = matchstr(line, '\(\S.*\)$')
while part =~ '<.*>' while part =~ '<.*>'
let part = substitute(part, '<.\{-}>', '', '') let part = substitute(part, '^.*<.\{-}>', '', '')
endwhile endwhile
endif endif
let rest = getline('.')[len(line):] let rest = getline('.')[len(line):]