Update unsaved status on undo/redo/replace/paste
Fixes: #116 Issue #116 concerns undo and redo, but I also found a few other instances where the unsaved indicator wasn't correctly updated. I fixed those as well.
This commit is contained in:
parent
59933e6a03
commit
3d4fa84759
3 changed files with 38 additions and 17 deletions
|
|
@ -152,7 +152,7 @@ impl EditorTab {
|
|||
});
|
||||
match fs::write(path, text) {
|
||||
Ok(()) => {
|
||||
editor.set_changed(false);
|
||||
editor.save_point();
|
||||
log::info!("saved {:?}", path);
|
||||
}
|
||||
Err(err) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue