forked from VimPlug/emmet-vim
move cursor pos to position of empty attribute values.
This commit is contained in:
@@ -871,12 +871,12 @@ function! s:zen_parseIntoTree(abbr, type)
|
|||||||
if type(default_attributes[tag_name]) == 4
|
if type(default_attributes[tag_name]) == 4
|
||||||
let a = default_attributes[tag_name]
|
let a = default_attributes[tag_name]
|
||||||
for k in keys(a)
|
for k in keys(a)
|
||||||
let current['attr'][k] = a[k]
|
let current['attr'][k] = len(a[k]) ? a[k] : '|'
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
for a in default_attributes[tag_name]
|
for a in default_attributes[tag_name]
|
||||||
for k in keys(a)
|
for k in keys(a)
|
||||||
let current['attr'][k] = a[k]
|
let current['attr'][k] = len(a[k]) ? a[k] : '|'
|
||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user