We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5533a commit 847e5b0Copy full SHA for 847e5b0
src/functions.cpp
@@ -184,7 +184,9 @@ namespace Sass {
184
std::string exp_src = exp->to_string(ctx.c_options);
185
Selector_List_Obj sel_list = Parser::parse_selector(exp_src.c_str(), ctx);
186
if (sel_list->length() == 0) return NULL;
187
- return sel_list->first()->tail()->head();
+ Complex_Selector_Obj first = sel_list->first();
188
+ if (!first->tail()) return first->head();
189
+ return first->tail()->head();
190
}
191
192
#ifdef __MINGW32__
0 commit comments