Implement revert all changes, fixes #128

This commit is contained in:
Jeremy Soller 2025-01-17 09:43:46 -07:00
parent 03de470425
commit 686185b0f1
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 14 additions and 1 deletions

View file

@ -127,6 +127,9 @@ impl EditorTab {
match editor.load_text(path, self.attrs) {
Ok(()) => {
log::info!("reloaded {:?}", path);
// Clear changed state
editor.set_changed(false);
}
Err(err) => {
log::error!("failed to reload {:?}: {}", path, err);