refactor(buffer): add Buffer.mark_not_ephemeral function
This commit is contained in:
parent
2371140b3f
commit
09e622f032
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue