Improve cursor position after expanding for sass

This commit is contained in:
mattn
2014-02-12 20:53:22 +09:00
parent d9481c235b
commit 381dd35018
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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$$$$",
}, },
], ],
}, },