From 4254054dec66bb715d3a16ce3a9cf40501522773 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Fri, 27 Apr 2018 13:14:43 +0200 Subject: [PATCH] Fix explosion of parent selectors in selector-nest --- src/ast.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ast.cpp b/src/ast.cpp index 357bd778df..7e344f81c8 100644 --- a/src/ast.cpp +++ b/src/ast.cpp @@ -1263,12 +1263,8 @@ namespace Sass { { if (!this->has_parent_ref()) return this; Selector_List_Ptr ss = SASS_MEMORY_NEW(Selector_List, pstate()); - Selector_List_Ptr ps = pstack.back(); - for (size_t pi = 0, pL = ps->length(); pi < pL; ++pi) { - for (size_t si = 0, sL = this->length(); si < sL; ++si) { - Selector_List_Obj rv = at(si)->resolve_parent_refs(pstack, traces, implicit_parent); - ss->concat(rv); - } + for (size_t si = 0, sL = this->length(); si < sL; ++si) { + ss->concat(at(si)->resolve_parent_refs(pstack, traces, implicit_parent)); } return ss; }