From 25103833b2dc5d6edf1beca396fa838294fc114a Mon Sep 17 00:00:00 2001 From: Shafkath Shuhan Date: Thu, 22 Jul 2021 18:24:58 -0400 Subject: [PATCH] mark reloaded buffers as unchanged --- helix-view/src/document.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 8fdf7d989..c751785d5 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();