@@ -611,6 +611,7 @@ impl Document {
611 let transaction = helix_core::diff::compare_ropes(self.text(), &rope);
611 let transaction = helix_core::diff::compare_ropes(self.text(), &rope);
612 self.apply(&transaction, view_id);
612 self.apply(&transaction, view_id);
613 self.append_changes_to_history(view_id);
613 self.append_changes_to_history(view_id);
614+ self.reset_modified();
615 // Detect indentation style and set line ending.
616 // Detect indentation style and set line ending.
616 self.detect_indent_style();
617 self.detect_indent_style();