aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/compositor.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-09-03 03:38:38 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitb530a86d1f15cc7df0e1ae8aa4bd02109ac33a8f (patch)
treea2dce789418ecc463490a98ee90a4da3631a076f /helix-term/src/compositor.rs
parentb3fc31a211293f48696d26855781577d1859c2c6 (diff)
remove Callback::Compositor variant
To reduce likelihood of accidental discarding of important callbacks
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r--helix-term/src/compositor.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs
index 5077807d..35b9d054 100644
--- a/helix-term/src/compositor.rs
+++ b/helix-term/src/compositor.rs
@@ -31,9 +31,7 @@ impl<'a> Context<'a> {
/// Waits on all pending jobs, and then tries to flush all pending write
/// operations for all documents.
pub fn block_try_flush_writes(&mut self) -> anyhow::Result<()> {
- tokio::task::block_in_place(|| {
- helix_lsp::block_on(self.jobs.finish(Some(self.editor), None))
- })?;
+ tokio::task::block_in_place(|| helix_lsp::block_on(self.jobs.finish(self.editor, None)))?;
for doc in &mut self.editor.documents.values_mut() {
tokio::task::block_in_place(|| helix_lsp::block_on(doc.try_flush_saves()))