From c9b8c2edcb359eb1ce0a4507713cc333f313c7ed Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 22 Oct 2013 13:21:32 +0900 Subject: [PATCH] Fixes item number in group. Closes #164 --- autoload/emmet/lang/html.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 721121c..0a9b347 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -282,7 +282,10 @@ function! emmet#lang#html#parseIntoTree(abbr, type) let cl = last.child let cls = [] for c in range(n[1:]) - let cls += cl + for cc in cl + let cc.basevalue = c + 1 + endfor + let cls += deepcopy(cl) endfor let last.child = cls endif