aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorKirawi2021-06-24 03:39:50 +0000
committerBlaž Hrastnik2021-06-24 13:38:38 +0000
commit15ae2e7ef1a7c33733c999e9018cca22cdae1da9 (patch)
treedd99ac629c5a62543806ca5b45661bdf2c784693 /helix-term
parent7ae21b98ce431541b0ba1fd4350d6e3d4357e2f3 (diff)
Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'helix-term')
-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 a45a8373..be350140 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1222,15 +1222,14 @@ mod cmd {
Ok(handle) => {
if let Err(e) = helix_lsp::block_on(handle) {
cx.editor.set_error(e.to_string());
- return;
+ } else {
+ force_quit(cx, &[], event);
}
}
Err(e) => {
cx.editor.set_error(e.to_string());
- return;
}
- };
- force_quit(cx, &[], event);
+ }
}
/// Returns `true` if there are modified buffers remaining and sets editor error,