aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorShafkath Shuhan2021-07-22 22:24:58 +0000
committerNathan Vegdahl2021-07-23 00:39:45 +0000
commit25103833b2dc5d6edf1beca396fa838294fc114a (patch)
treee29395e8930a21b103b3ffc938473699aa9c483b /helix-view/src
parentd4bd5b37669708361a0a6cd2917464b010e6b7f5 (diff)
mark reloaded buffers as unchanged
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 8fdf7d98..c751785d 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -611,6 +611,7 @@ impl Document {
let transaction = helix_core::diff::compare_ropes(self.text(), &rope);
self.apply(&transaction, view_id);
self.append_changes_to_history(view_id);
+ self.reset_modified();
// Detect indentation style and set line ending.
self.detect_indent_style();