Define excluded property for FFResultNode child nodes

This returns YES when all leafs are excluded.
This commit is contained in:
Allan Odgaard
2014-10-15 15:37:07 +02:00
parent 4f807fd109
commit e2ab281343

View File

@@ -196,7 +196,7 @@ static NSAttributedString* AttributedStringForMatch (std::string const& text, si
- (BOOL)excluded
{
return !_children && _countOfExcluded == 1;
return _countOfExcluded == (_children ? _countOfLeafs : 1);
}
- (FFResultNode*)firstResultNode { return [_children firstObject]; }