Skip to content

Commit

Permalink
Fix ignored :not(multiple, selectors)
Browse files Browse the repository at this point in the history
Fixes sass#2697
  • Loading branch information
glebm authored and xzyfer committed Nov 16, 2018
1 parent ab03dc0 commit d225a09
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace Sass {
{
return ctx.cwd();
}

struct Sass_Inspect_Options& Eval::options()
{
return ctx.c_options;
Expand Down Expand Up @@ -1636,15 +1636,14 @@ namespace Sass {
if (s->selector()->find(hasNotSelector)) {
s->selector()->clear();
s->name(" ");
} else if (s->selector()->length() == 1) {
Complex_Selector_Ptr cs = s->selector()->at(0);
if (cs->tail()) {
s->selector()->clear();
s->name(" ");
} else {
for (size_t i = 0; i < s->selector()->length(); ++i) {
Complex_Selector_Ptr cs = s->selector()->at(i);
if (cs->tail()) {
s->selector()->clear();
s->name(" ");
}
}
} else if (s->selector()->length() > 1) {
s->selector()->clear();
s->name(" ");
}
}
}
Expand Down

0 comments on commit d225a09

Please sign in to comment.