Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit abf78cc

Browse files
authored
Merge pull request #2642 from mgreter/bugfix/2640-selector-nest-explosion
Fix explosion of parent selectors in selector-nest
2 parents 95011cd + 4254054 commit abf78cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/ast.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,8 @@ namespace Sass {
12631263
{
12641264
if (!this->has_parent_ref()) return this;
12651265
Selector_List_Ptr ss = SASS_MEMORY_NEW(Selector_List, pstate());
1266-
Selector_List_Ptr ps = pstack.back();
1267-
for (size_t pi = 0, pL = ps->length(); pi < pL; ++pi) {
1268-
for (size_t si = 0, sL = this->length(); si < sL; ++si) {
1269-
Selector_List_Obj rv = at(si)->resolve_parent_refs(pstack, traces, implicit_parent);
1270-
ss->concat(rv);
1271-
}
1266+
for (size_t si = 0, sL = this->length(); si < sL; ++si) {
1267+
ss->concat(at(si)->resolve_parent_refs(pstack, traces, implicit_parent));
12721268
}
12731269
return ss;
12741270
}

0 commit comments

Comments
 (0)