From d698f1658770ca5fa58c87e80421c8d65bbe9065 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 11 Feb 2019 00:04:31 +0900 Subject: [PATCH] Expand lorem with div only when there is multiplier. --- autoload/emmet/lang/html.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index e3b18cd..b691667 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -147,7 +147,9 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort let tag_name = pmap[pname] elseif !empty(pname) && index(inlineLevel, pname) > -1 let tag_name = 'span' - elseif len(parent.child) == 0 || len(custom) == 0 + elseif len(custom) == 0 + let tag_name = 'div' + elseif len(custom) != 0 && multiplier > 1 let tag_name = 'div' else let tag_name = custom