mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Define excluded property for FFResultNode child nodes
This returns YES when all leafs are excluded.
This commit is contained in:
@@ -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]; }
|
||||
|
||||
Reference in New Issue
Block a user