mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Introduce document_t::detach_backup
This will reset the document’s backup path but not delete the backup on disk (which can be found via the document’s identifier). This is useful if we wish to dispose the document but reconstruct it later (e.g. during application termination).
This commit is contained in:
@@ -212,6 +212,7 @@ namespace document
|
||||
void try_save (document::save_callback_ptr callback);
|
||||
bool save ();
|
||||
bool backup ();
|
||||
void detach_backup () { _backup_path = NULL_STR; }
|
||||
|
||||
void set_path (std::string const& newPath);
|
||||
void set_virtual_path (std::string const& virtualPath) { _virtual_path = virtualPath; }
|
||||
|
||||
Reference in New Issue
Block a user