refactor: add Buffer.mark_dirty() function
This commit is contained in:
parent
e13295100b
commit
652db7d9b9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue