refactor(buffer): add Buffer.mark_not_ephemeral function

This commit is contained in:
CJ van den Berg 2025-01-30 14:04:00 +01:00
parent 2371140b3f
commit 09e622f032
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1347,6 +1347,10 @@ pub fn is_ephemeral(self: *const Self) bool {
return self.ephemeral;
}
pub fn mark_not_ephemeral(self: *Self) void {
self.ephemeral = false;
}
pub fn is_dirty(self: *const Self) bool {
return if (!self.file_exists)
self.root.length() > 0