mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Bundle Editor: Set bundle item’s name as document’s custom name
This affects the name used for backup files and TM_DISPLAYNAME which could be used by some commands invoked from the bundle editor.
This commit is contained in:
@@ -797,7 +797,7 @@ static NSMutableDictionary* DictionaryForPropertyList (plist::dictionary_t const
|
||||
}
|
||||
|
||||
bundleItemContent = bundleItemContent ?: document::from_content("");
|
||||
bundleItemContent->set_custom_name("«bundle item»");
|
||||
bundleItemContent->set_custom_name(bundleItem->name());
|
||||
bundleItemContent->add_callback(documentCallback);
|
||||
[documentView setDocument:bundleItemContent];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user