on master help sign in
Update helix-term/src/commands.rs
15ae2e7Kirawi
helix-term/src/commands.rs+3−4
@@ -1222,15 +1222,14 @@ mod cmd {
1222 Ok(handle) => {
1222 Ok(handle) => {
1223 if let Err(e) = helix_lsp::block_on(handle) {
1223 if let Err(e) = helix_lsp::block_on(handle) {
1224 cx.editor.set_error(e.to_string());
1224 cx.editor.set_error(e.to_string());
1225− return;
1225+ } else {
1226+ force_quit(cx, &[], event);
1226 }
1227 }
1227 }
1228 }
1228 Err(e) => {
1229 Err(e) => {
1229 cx.editor.set_error(e.to_string());
1230 cx.editor.set_error(e.to_string());
1230− return;
1231 }
1231 }
1232− };
1232+ }
1233− force_quit(cx, &[], event);
1234 }
1233 }
1235
1234
1236 /// Returns `true` if there are modified buffers remaining and sets editor error,
1235 /// Returns `true` if there are modified buffers remaining and sets editor error,