on master help sign in
Update helix-term/src/commands.rs

Co-authored-by: Ivan Tham <pickfire@riseup.net>

commit7ae21b98ce431541b0ba1fd4350d6e3d4357e2f3 authorKirawi <67773714+kirawi@users.noreply.github.com> dateWed 23 Jun 2021, 23:38 (5 years ago) parent629df61
1 file changed+3−4
helix-term/src/commands.rs+3−4
helix-term/src/commands.rs+3−4
@@ -1206,15 +1206,14 @@ mod cmd {
12061206 Ok(handle) => {
12071207 if let Err(e) = helix_lsp::block_on(handle) {
12081208 cx.editor.set_error(e.to_string());
1209− return;
1209+ } else {
1210+ quit(cx, &[], event);
12101211 }
12111212 }
12121213 Err(e) => {
12131214 cx.editor.set_error(e.to_string());
1214− return;
12151215 }
1216− };
1217− quit(cx, &[], event)
1216+ }
12181217 }
12191218
12201219 fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) {