summaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-07-12 03:38:26 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitaaa145067833c41686b7cdde9fb999018735bc04 (patch)
tree539def84aabcb742b8c7c443fabf55db5d660b7c /helix-term/src/application.rs
parentc9418582d2a6d8dbb8b5bb1d3432a9087438e61d (diff)
fix write-quit with auto format
write-quit will now save all files successfully even when there is auto formatting
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index e84739cd..84eba22a 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -971,7 +971,11 @@ impl Application {
// want to try to run as much cleanup as we can, regardless of
// errors along the way
- let mut result = match self.jobs.finish().await {
+ let mut result = match self
+ .jobs
+ .finish(Some(&mut self.editor), Some(&mut self.compositor))
+ .await
+ {
Ok(_) => Ok(()),
Err(err) => {
log::error!("Error executing job: {}", err);