Update helix-term/src/commands.rs

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

View file

@ -1222,15 +1222,14 @@ fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEv
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,