on master help sign in
Update helix-term/src/commands.rs
7ae21b9Kirawi
helix-term/src/commands.rs+3−4
@@ -1206,15 +1206,14 @@ mod cmd {
1206 Ok(handle) => {
1206 Ok(handle) => {
1207 if let Err(e) = helix_lsp::block_on(handle) {
1207 if let Err(e) = helix_lsp::block_on(handle) {
1208 cx.editor.set_error(e.to_string());
1208 cx.editor.set_error(e.to_string());
1209− return;
1209+ } else {
1210+ quit(cx, &[], event);
1210 }
1211 }
1211 }
1212 }
1212 Err(e) => {
1213 Err(e) => {
1213 cx.editor.set_error(e.to_string());
1214 cx.editor.set_error(e.to_string());
1214− return;
1215 }
1215 }
1216− };
1216+ }
1217− quit(cx, &[], event)
1218 }
1217 }
1219
1218
1220 fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) {
1219 fn force_write_quit(cx: &mut compositor::Context, args: &[&str], event: PromptEvent) {