fix cursor placing for haml & slim. close #92

This commit is contained in:
mattn
2012-08-23 11:39:28 +09:00
parent b45b08f5e8
commit 72e10f85fe
2 changed files with 4 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ function! zencoding#lang#slim#toString(settings, current, type, inline, filters,
for line in split(text, "\n")
let str .= indent . "| " . line . "\n"
endfor
elseif len(current.child) == 0
let str .= '${cursor}'
endif
if len(current.child) == 1 && len(current.child[0].name) == 0
let str .= "\n"