aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/commands.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index bb99f2b5..a45a8373 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1206,15 +1206,14 @@ mod cmd {
Ok(handle) => {
if let Err(e) = helix_lsp::block_on(handle) {
cx.editor.set_error(e.to_string());
- return;
+ } else {
+ quit(cx, &[], event);
}
}
Err(e) => {
cx.editor.set_error(e.to_string());
- return;
}
- };
- quit(cx, &[], event)
+ }
}
fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) {