Update helix-term/src/commands.rs

Co-authored-by: Ivan Tham <pickfire@riseup.net>
imgbot
Kirawi 3 years ago committed by Blaž Hrastnik
parent 629df6124d
commit 7ae21b98ce

@ -1206,15 +1206,14 @@ mod cmd {
Ok(handle) => { Ok(handle) => {
if let Err(e) = helix_lsp::block_on(handle) { if let Err(e) = helix_lsp::block_on(handle) {
cx.editor.set_error(e.to_string()); cx.editor.set_error(e.to_string());
return; } else {
quit(cx, &[], event);
} }
} }
Err(e) => { Err(e) => {
cx.editor.set_error(e.to_string()); cx.editor.set_error(e.to_string());
return;
} }
}; }
quit(cx, &[], event)
} }
fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) { fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) {

Loading…
Cancel
Save