Skip to content

Commit 089643b

Browse files
committed
Merge pull request #2002 from mgreter/bugfix/issue_1927
Fix media_block propagation on selector schema evaluation
2 parents 3ffb1fd + d342a43 commit 089643b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/eval.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ namespace Sass {
11081108
void Eval::interpolation(Context& ctx, std::string& res, Expression* ex, bool into_quotes, bool was_itpl) {
11091109

11101110
bool needs_closing_brace = false;
1111-
//debug_ast(ex);
1111+
11121112
if (Arguments* args = dynamic_cast<Arguments*>(ex)) {
11131113
List* ll = SASS_MEMORY_NEW(ctx.mem, List, args->pstate(), 0, SASS_COMMA);
11141114
for(auto arg : *args) {
@@ -1731,6 +1731,7 @@ namespace Sass {
17311731
std::string result_str(s->contents()->perform(this)->to_string(ctx.c_options));
17321732
result_str = unquote(Util::rtrim(result_str)) + "\n{";
17331733
Parser p = Parser::from_c_str(result_str.c_str(), ctx, s->pstate());
1734+
p.last_media_block = s->media_block();
17341735
return operator()(p.parse_selector_list(exp.block_stack.back()->is_root()));
17351736
}
17361737

0 commit comments

Comments
 (0)