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

Commit d225a09

Browse files
glebmxzyfer
authored andcommitted
Fix ignored :not(multiple, selectors)
Fixes #2697
1 parent ab03dc0 commit d225a09

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/eval.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace Sass {
5252
{
5353
return ctx.cwd();
5454
}
55-
55+
5656
struct Sass_Inspect_Options& Eval::options()
5757
{
5858
return ctx.c_options;
@@ -1636,15 +1636,14 @@ namespace Sass {
16361636
if (s->selector()->find(hasNotSelector)) {
16371637
s->selector()->clear();
16381638
s->name(" ");
1639-
} else if (s->selector()->length() == 1) {
1640-
Complex_Selector_Ptr cs = s->selector()->at(0);
1641-
if (cs->tail()) {
1642-
s->selector()->clear();
1643-
s->name(" ");
1639+
} else {
1640+
for (size_t i = 0; i < s->selector()->length(); ++i) {
1641+
Complex_Selector_Ptr cs = s->selector()->at(i);
1642+
if (cs->tail()) {
1643+
s->selector()->clear();
1644+
s->name(" ");
1645+
}
16441646
}
1645-
} else if (s->selector()->length() > 1) {
1646-
s->selector()->clear();
1647-
s->name(" ");
16481647
}
16491648
}
16501649
}

0 commit comments

Comments
 (0)