From 7ae21b98ce431541b0ba1fd4350d6e3d4357e2f3 Mon Sep 17 00:00:00 2001 From: Kirawi <67773714+kirawi@users.noreply.github.com> Date: Wed, 23 Jun 2021 23:38:03 -0400 Subject: [PATCH] Update helix-term/src/commands.rs Co-authored-by: Ivan Tham --- helix-term/src/commands.rs | 7 +++---- 1 file 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) {