Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
| -rw-r--r-- | helix-term/src/ui/editor.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 6fecd512..d8500ed4 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1522,7 +1522,12 @@ impl Component for EditorView { } Event::FocusLost => { if context.editor.config().auto_save.focus_lost { - if let Err(e) = commands::typed::write_all_impl(context, false, false) { + let options = commands::WriteAllOptions { + force: false, + write_scratch: false, + auto_format: false, + }; + if let Err(e) = commands::typed::write_all_impl(context, options) { context.editor.set_error(format!("{}", e)); } } |