mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-09 03:54:47 +08:00
fix broken wrap expanding.
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: 12-Jan-2011.
|
" Last Change: 14-Jan-2011.
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
@@ -642,7 +642,10 @@ 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 = join(split(expand, '\$line\$'), lpart)
|
let pos = stridx(expand, "$line$")
|
||||||
|
if pos != -1
|
||||||
|
let expand = expand[:pos-1] . lpart . expand[pos+6:]
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
let str = ''
|
let str = ''
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: zencoding.vim
|
" File: zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 13-Jan-2011.
|
" Last Change: 14-Jan-2011.
|
||||||
" Version: 0.51
|
" Version: 0.52
|
||||||
" WebPage: http://github.com/mattn/zencoding-vim
|
" WebPage: http://github.com/mattn/zencoding-vim
|
||||||
" Description: vim plugins for HTML and CSS hi-speed coding.
|
" Description: vim plugins for HTML and CSS hi-speed coding.
|
||||||
" SeeAlso: http://code.google.com/p/zen-coding/
|
" SeeAlso: http://code.google.com/p/zen-coding/
|
||||||
|
|||||||
@@ -98,6 +98,8 @@ install_details: |
|
|||||||
# git clone http://github.com/mattn/zencoding-vim.git
|
# git clone http://github.com/mattn/zencoding-vim.git
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
- '0.52': |
|
||||||
|
[fix] broken wrap expanding.
|
||||||
- '0.51': |
|
- '0.51': |
|
||||||
This is an upgrade for ZenCoding.vim:
|
This is an upgrade for ZenCoding.vim:
|
||||||
[fix] wrap expanding with '&'.
|
[fix] wrap expanding with '&'.
|
||||||
|
|||||||
Reference in New Issue
Block a user