Update helix-term/src/commands.rs

Co-authored-by: Ivan Tham <pickfire@riseup.net>
This commit is contained in:
Kirawi 2021-06-23 23:38:03 -04:00 committed by Blaž Hrastnik
parent 629df6124d
commit 7ae21b98ce

View file

@ -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) {