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