Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/handlers/auto_save.rs')
-rw-r--r--helix-term/src/handlers/auto_save.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/helix-term/src/handlers/auto_save.rs b/helix-term/src/handlers/auto_save.rs
index 47e2ecfd..4e154df8 100644
--- a/helix-term/src/handlers/auto_save.rs
+++ b/helix-term/src/handlers/auto_save.rs
@@ -87,13 +87,7 @@ fn request_auto_save(editor: &mut Editor) {
jobs: &mut Jobs::new(),
};
- let options = commands::WriteAllOptions {
- force: false,
- write_scratch: false,
- auto_format: false,
- };
-
- if let Err(e) = commands::typed::write_all_impl(context, options) {
+ if let Err(e) = commands::typed::write_all_impl(context, false, false) {
context.editor.set_error(format!("{}", e));
}
}