refactor: add Buffer.mark_dirty() function

This commit is contained in:
CJ van den Berg 2025-08-05 13:41:48 +02:00
parent e13295100b
commit 652db7d9b9
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1367,6 +1367,10 @@ pub fn mark_clean(self: *Self) void {
self.last_save = self.root;
}
pub fn mark_dirty(self: *Self) void {
self.last_save = null;
}
pub fn is_hidden(self: *const Self) bool {
return self.hidden;
}