aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-10-16 15:02:14 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commit52ba550098745b463f59211a0172c334daef350b (patch)
treeab74c4f45405dca550e2c8f90845e9f2775a496d /helix-term/src
parent2a43ee016453e39e2cc4cae510ce7d75606e7199 (diff)
Use flush_writes in application.close()
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 2e49e6d1..6ca5b657 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -977,18 +977,7 @@ impl Application {
errs.push(err);
};
- for doc in self.editor.documents_mut() {
- if let Some(Err(err)) = doc.close().await {
- if let Some(path) = doc.path() {
- log::error!(
- "Error saving document '{}': {}",
- path.to_string_lossy(),
- err
- );
- }
- errs.push(err);
- }
- }
+ self.editor.flush_writes().await;
if self.editor.close_language_servers(None).await.is_err() {
log::error!("Timed out waiting for language servers to shutdown");