diff options
author | Skyler Hawthorne | 2022-10-17 01:40:40 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-10-19 02:31:39 +0000 |
commit | e645804b0a8e42c9fb9ef8259a9b2ad47a57a6e6 (patch) | |
tree | 37aa2579e0dd2b91f4c506882874730d3f41161c /helix-term/src/compositor.rs | |
parent | 52ba550098745b463f59211a0172c334daef350b (diff) |
Editor::flush_writes returns an error
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r-- | helix-term/src/compositor.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index 76703780..971dc52d 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -32,9 +32,7 @@ impl<'a> Context<'a> { /// 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(self.editor, None)))?; - - tokio::task::block_in_place(|| helix_lsp::block_on(self.editor.flush_writes())); - + tokio::task::block_in_place(|| helix_lsp::block_on(self.editor.flush_writes()))?; Ok(()) } } |