aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorKirawi2021-06-24 03:38:03 +0000
committerBlaž Hrastnik2021-06-24 13:38:38 +0000
commit7ae21b98ce431541b0ba1fd4350d6e3d4357e2f3 (patch)
tree3ee80f733a4b36ea384c498a0e6ba560f1378c7d /helix-term/src
parent629df6124df4c136a4b4de6e1aeb887bbbaaddbe (diff)
Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'helix-term/src')
-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) {