mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
Improve cursor position after expanding for sass
This commit is contained in:
@@ -52,7 +52,7 @@ function! emmet#lang#sass#toString(settings, current, type, inline, filters, ite
|
|||||||
for child in current.child
|
for child in current.child
|
||||||
let tmp = emmet#toString(child, type, inline, filters, itemno, indent)
|
let tmp = emmet#toString(child, type, inline, filters, itemno, indent)
|
||||||
let tmp = substitute(tmp, "\n", "\n" . escape(indent, '\'), 'g')
|
let tmp = substitute(tmp, "\n", "\n" . escape(indent, '\'), 'g')
|
||||||
let tmp = substitute(tmp, "\n" . escape(indent, '\') . '$', '\n', 'g')
|
let tmp = substitute(tmp, "\n" . escape(indent, '\') . '$', '${cursor}\n', 'g')
|
||||||
let inner .= tmp
|
let inner .= tmp
|
||||||
endfor
|
endfor
|
||||||
if len(inner) > 0
|
if len(inner) > 0
|
||||||
|
|||||||
@@ -932,7 +932,7 @@ finish
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'query': ".first>.second>.third$$$$",
|
'query': ".first>.second>.third$$$$",
|
||||||
'result': "div.first\n\tdiv.second\n\t\tdiv.third\n\t\t\t$$$$",
|
'result': "div.first\n\tdiv.second\n\t\tdiv.third$$$$",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user