mirror of https://github.com/helix-editor/helix
Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>pull/345/head
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…
Reference in New Issue