@@ -885,8 +885,12 @@ fn goto_window(cx: &mut Context, align: Align) {
885 .min(last_line.saturating_sub(scrolloff));
885 .min(last_line.saturating_sub(scrolloff));
887 let pos = doc.text().line_to_char(line);
887 let pos = doc.text().line_to_char(line);
888−
888+ let text = doc.text().slice(..);
892+ .transform(|range| range.put_cursor(text, pos, cx.editor.mode == Mode::Select));
889− doc.set_selection(view.id, Selection::point(pos));
893+ doc.set_selection(view.id, selection);
892fn goto_window_top(cx: &mut Context) {
896fn goto_window_top(cx: &mut Context) {