Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>
This commit is contained in:
parent
629df6124d
commit
7ae21b98ce
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue