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