mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Skip modified tabs when opening with “close other”
This commit is contained in:
@@ -686,7 +686,8 @@ namespace
|
||||
NSMutableIndexSet* indexSet = [NSMutableIndexSet indexSet];
|
||||
for(size_t i = 0; i < newDocuments.size(); ++i)
|
||||
{
|
||||
if(uuids.find(newDocuments[i]->identifier()) == uuids.end())
|
||||
document::document_ptr doc = newDocuments[i];
|
||||
if(!doc->is_modified() && uuids.find(doc->identifier()) == uuids.end())
|
||||
[indexSet addIndex:i];
|
||||
}
|
||||
[self closeTabsAtIndexes:indexSet askToSaveChanges:YES createDocumentIfEmpty:NO];
|
||||
|
||||
Reference in New Issue
Block a user