mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
mark reloaded buffers as unchanged
This commit is contained in:
parent
d4bd5b3766
commit
25103833b2
@ -611,6 +611,7 @@ pub fn reload(&mut self, view_id: ViewId) -> Result<(), Error> {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user