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:
Josh Megnauth 2024-03-26 01:51:00 -04:00 committed by Jeremy Soller
parent 59933e6a03
commit 3d4fa84759
3 changed files with 38 additions and 17 deletions

View file

@ -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) => {