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

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

commit15ae2e7ef1a7c33733c999e9018cca22cdae1da9 authorKirawi <67773714+kirawi@users.noreply.github.com> dateWed 23 Jun 2021, 23:39 (5 years ago) parent7ae21b9
1 file changed+3−4
helix-term/src/commands.rs+3−4
helix-term/src/commands.rs+3−4
@@ -1222,15 +1222,14 @@ mod cmd {
12221222 Ok(handle) => {
12231223 if let Err(e) = helix_lsp::block_on(handle) {
12241224 cx.editor.set_error(e.to_string());
1225− return;
1225+ } else {
1226+ force_quit(cx, &[], event);
12261227 }
12271228 }
12281229 Err(e) => {
12291230 cx.editor.set_error(e.to_string());
1230− return;
12311231 }
1232− };
1233− force_quit(cx, &[], event);
1232+ }
12341233 }
12351234
12361235 /// Returns `true` if there are modified buffers remaining and sets editor error,