aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs6
-rw-r--r--helix-term/src/job.rs1
2 files changed, 4 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 70eae18a..a06460de 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -9,7 +9,7 @@ use helix_core::{
use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
use helix_view::{
align_view,
- document::DocumentSaveEventResult,
+ document::DocumentSavedEventResult,
editor::{ConfigEvent, EditorEvent},
theme,
tree::Layout,
@@ -431,7 +431,7 @@ impl Application {
}
}
- pub fn handle_document_write(&mut self, doc_save_event: DocumentSaveEventResult) {
+ pub fn handle_document_write(&mut self, doc_save_event: DocumentSavedEventResult) {
if let Err(err) = doc_save_event {
self.editor.set_error(err.to_string());
return;
@@ -485,7 +485,7 @@ impl Application {
log::debug!("received editor event: {:?}", event);
match event {
- EditorEvent::DocumentSave(event) => {
+ EditorEvent::DocumentSaved(event) => {
self.handle_document_write(event);
self.render();
}
diff --git a/helix-term/src/job.rs b/helix-term/src/job.rs
index a997653d..3c9e4511 100644
--- a/helix-term/src/job.rs
+++ b/helix-term/src/job.rs
@@ -107,6 +107,7 @@ impl Jobs {
) -> anyhow::Result<()> {
log::debug!("waiting on jobs...");
let mut wait_futures = std::mem::take(&mut self.wait_futures);
+
while let (Some(job), tail) = wait_futures.into_future().await {
match job {
Ok(callback) => {