mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Inherit project folder when moving document to new window
This only happens if the document being moved is a child of the project folder.
This commit is contained in:
@@ -1577,6 +1577,8 @@ namespace
|
||||
{
|
||||
DocumentController* controller = [DocumentController new];
|
||||
controller.documents = make_vector(documents[0]);
|
||||
if(path::is_child(documents[0]->path(), to_s(self.projectPath)))
|
||||
controller.defaultProjectPath = self.projectPath;
|
||||
[controller openAndSelectDocument:documents[0]];
|
||||
[controller showWindow:self];
|
||||
[self closeTabsAtIndexes:indexSet askToSaveChanges:NO createDocumentIfEmpty:YES];
|
||||
|
||||
Reference in New Issue
Block a user