summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 09048f48..b5f37563 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -958,7 +958,7 @@ mod cmd {
if autofmt {
doc.format(view.id); // TODO: merge into save
}
- tokio::spawn(doc.save());
+ helix_lsp::block_on(doc.save());
Ok(())
}
@@ -1051,7 +1051,7 @@ mod cmd {
errors.push_str("cannot write a buffer without a filename\n");
continue;
}
- tokio::spawn(doc.save());
+ helix_lsp::block_on(doc.save());
}
editor.set_error(errors);