Implement revert all changes, fixes #128
This commit is contained in:
parent
03de470425
commit
686185b0f1
3 changed files with 14 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue