mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Setup project folder after saving single untitled document
This commit is contained in:
@@ -172,6 +172,8 @@ namespace
|
||||
case did_change_path:
|
||||
[_self setDocumentPath:[NSString stringWithCxxString:document->path()]];
|
||||
[_self setDocumentDisplayName:[NSString stringWithCxxString:document->display_name()]];
|
||||
if(!_self.projectPath)
|
||||
_self.projectPath = [NSString stringWithCxxString:path::parent(document->path())];
|
||||
break;
|
||||
|
||||
case did_change_on_disk_status: [_self setDocumentIsOnDisk:document->is_on_disk()]; break;
|
||||
|
||||
Reference in New Issue
Block a user