Skip to content

Commit

Permalink
Merge pull request sass#2642 from mgreter/bugfix/2640-selector-nest-e…
Browse files Browse the repository at this point in the history
…xplosion

Fix explosion of parent selectors in selector-nest
  • Loading branch information
mgreter authored Apr 28, 2018
2 parents 95011cd + 4254054 commit abf78cc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit abf78cc

Please sign in to comment.