From 2a5684bac4b1a222e94a6c63e73ce7a893884ed6 Mon Sep 17 00:00:00 2001 From: Mike Wadsten Date: Fri, 9 Aug 2013 22:45:42 -0500 Subject: [PATCH] Fix numbering on nested multiplication If an element is being multiplied, its number should reflect the repeating of that element, not the group it belongs in. ---- Example case: Input: .outer$*3>.inner$*2 Expected output:
Observed output:
--- autoload/emmet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 1408a33..43f25ed 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -169,7 +169,7 @@ function! emmet#toString(...) let rtype = emmet#lang#exists(type) ? type : 'html' while itemno < current.multiplier if len(current.name) - if group_itemno != 0 + if current.multiplier == 1 let inner = emmet#lang#{rtype}#toString(s:emmet_settings, current, type, inline, filters, group_itemno, indent) else let inner = emmet#lang#{rtype}#toString(s:emmet_settings, current, type, inline, filters, itemno, indent)