fix lhs in partial coding.

This commit is contained in:
mattn
2012-05-23 17:31:32 +09:00
parent aea4becc0e
commit cf8c5b35f7

View File

@@ -390,7 +390,7 @@ function! zencoding#expandAbbr(mode) range
let col = col("'<")
silent! normal! c
let line = getline('.')
let lhs = matchstr(line, '.*\%'.(col-1).'c.')
let lhs = matchstr(line, '.*\%<'.col.'c.')
let rhs = matchstr(line, '\%>'.(col-1).'c.*')
let expand = lhs.expand.rhs
let lines = split(expand, '\n')