Skip to content

Commit 42e22fb

Browse files
committed
Merge pull request #1637 from mgreter/bugfix/issue_1634
Fix handling of skipping empty rest arg list
2 parents 77c928f + a969403 commit 42e22fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bind.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace Sass {
125125
// maybe we have another list as argument
126126
List* ls = dynamic_cast<List*>(a->value());
127127
// skip any list completely if empty
128-
if (ls && ls->empty()) continue;
128+
if (ls && ls->empty() && a->is_rest_argument()) continue;
129129
// flatten all nested arglists
130130
if (ls && ls->is_arglist()) {
131131
for (size_t i = 0, L = ls->size(); i < L; ++i) {

0 commit comments

Comments
 (0)