aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-31 03:08:15 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitf82a551b98cec165ac91aae15ba656a811229fde (patch)
treee3b1aeb2173e6c07483ce41ac40ff460e3d2b1ad /helix-term/src
parent6cffc7f05d0ca983690b46300cc82933389172c8 (diff)
Rename doc save event names to past tense
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) => {