forked from VimPlug/emmet-vim
fixed wrap expanding with '&'.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" zencoding.vim
|
" zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 06-Jan-2011.
|
" Last Change: 12-Jan-2011.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -642,7 +642,7 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
for n in range(a:firstline, a:lastline)
|
for n in range(a:firstline, a:lastline)
|
||||||
let lline = getline(n)
|
let lline = getline(n)
|
||||||
let lpart = substitute(lline, '^\s*', '', '')
|
let lpart = substitute(lline, '^\s*', '', '')
|
||||||
let expand = substitute(expand, '\$line\$', lpart, '')
|
let expand = join(split(expand, '\$line\$'), lpart)
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
let str = ''
|
let str = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user