From 93606aeabd88ea41d956e595a722544d6a1ed0ca Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 22 May 2016 01:20:12 +1000 Subject: [PATCH] Fix default at-root behaviour a condition was not supplied. This changed was incorrectly excluded all parent instead of just rules. As it stands this condition is unreachable but that could change in the future so this logic should be correct. --- src/ast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ast.hpp b/src/ast.hpp index c77fdf1226..466d6ed2aa 100644 --- a/src/ast.hpp +++ b/src/ast.hpp @@ -1737,7 +1737,7 @@ namespace Sass { bool exclude_node(Statement* s) { if (expression() == 0) { - return true; + return s->statement_type() == Statement::RULESET; } if (s->statement_type() == Statement::DIRECTIVE)