mirror of
https://github.com/textmate/textmate.git
synced 2026-01-20 20:27:59 -05:00
Improve editor performance when file browser show lots of stuff
Delays may still be experienced when a file is opened or its “modified” state is changed but general edits should no longer be affected by how much is showing in the file browser. This addresses issue #463.
This commit is contained in:
@@ -203,6 +203,9 @@ static bool is_binary (std::string const& path)
|
||||
|
||||
- (void)setOpenURLs:(NSArray*)newOpenURLs
|
||||
{
|
||||
if([outlineViewDelegate.openURLs isEqualToArray:newOpenURLs])
|
||||
return;
|
||||
|
||||
outlineViewDelegate.openURLs = newOpenURLs;
|
||||
[view.outlineView reloadData];
|
||||
}
|
||||
@@ -214,6 +217,9 @@ static bool is_binary (std::string const& path)
|
||||
|
||||
- (void)setModifiedURLs:(NSArray*)newModifiedURLs
|
||||
{
|
||||
if([outlineViewDelegate.modifiedURLs isEqualToArray:newModifiedURLs])
|
||||
return;
|
||||
|
||||
outlineViewDelegate.modifiedURLs = newModifiedURLs;
|
||||
[view.outlineView reloadData];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user