mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Drop other expanded folders when revealing item
We probably should only drop expanded folders which descend from the current root, but that’s more code and the implemented behavior could be seen as “garbage collection” (keeping the memory of expanded folders low).
This commit is contained in:
@@ -267,6 +267,8 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
|
||||
|
||||
if(expandAncestors)
|
||||
{
|
||||
[expandedURLs removeAllObjects];
|
||||
|
||||
NSMutableSet* ancestors = [NSMutableSet set];
|
||||
NSURL* rootURL = dataSource.rootItem.url;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user