forked from VimPlug/emmet-vim
fix $# contains &.
This commit is contained in:
1 parent
104a4b5ac0
commit
4a0e7d1fb2
1 file changed
+2
-2
@@ -716,14 +716,14 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
let lpart = substitute(lpart, '^[0-9.-]\+\s\+', '', '')
|
let lpart = substitute(lpart, '^[0-9.-]\+\s\+', '', '')
|
||||||
let lpart = substitute(lpart, '\s\+$', '', '')
|
let lpart = substitute(lpart, '\s\+$', '', '')
|
||||||
endif
|
endif
|
||||||
let expand = substitute(expand, '\$line'.(n-a:firstline+1).'\$', lpart, 'g')
|
let expand = substitute(expand, '\$line'.(n-a:firstline+1).'\$', '\=lpart', 'g')
|
||||||
endfor
|
endfor
|
||||||
let expand = substitute(expand, '\$line\d*\$', '', 'g')
|
let expand = substitute(expand, '\$line\d*\$', '', 'g')
|
||||||
let content = join(getline(a:firstline, a:lastline), "\n")
|
let content = join(getline(a:firstline, a:lastline), "\n")
|
||||||
if stridx(expand, '$#') < len(expand)-2
|
if stridx(expand, '$#') < len(expand)-2
|
||||||
let expand = substitute(expand, '^\(.*\)\$#\s*$', '\1', '')
|
let expand = substitute(expand, '^\(.*\)\$#\s*$', '\1', '')
|
||||||
endif
|
endif
|
||||||
let expand = substitute(expand, '\$#', content, 'g')
|
let expand = substitute(expand, '\$#', '\=content', 'g')
|
||||||
else
|
else
|
||||||
let str = ''
|
let str = ''
|
||||||
if visualmode() ==# 'V'
|
if visualmode() ==# 'V'
|
||||||
|
|||||||
Reference in new issue
Block a user