@@ -2789,6 +2789,14 @@ fn exit_select_mode(cx: &mut Context) {
2792+fn goto_pos(editor: &mut Editor, pos: usize) {
2793+ let (view, doc) = current!(editor);
2795+ push_jump(view, doc);
2796+ doc.set_selection(view.id, Selection::point(pos));
2797+ align_view(doc, view, Align::Center);
2792fn goto_first_diag(cx: &mut Context) {
2800fn goto_first_diag(cx: &mut Context) {
2793 let (view, doc) = current!(cx.editor);
2801 let (view, doc) = current!(cx.editor);
2794 let selection = match doc.diagnostics().first() {
2802 let selection = match doc.diagnostics().first() {