@@ -1,9 +1,16 @@
1−use helix_core::syntax;
1+use helix_core::{syntax, Selection};
2use helix_dap::Payload;
2use helix_dap::Payload;
3use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
3use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
4use helix_view::{theme, Editor};
4use helix_view::{theme, Editor};
8+ commands::{align_view, Align},
6−use crate::{args::Args, compositor::Compositor, config::Config, job::Jobs, ui};
9+ compositor::Compositor,
8use log::error;
15use log::error;
@@ -300,13 +307,22 @@ impl Application {
300 Some(helix_dap::Source {
307 Some(helix_dap::Source {
301 path: Some(src), ..
308 path: Some(src), ..
304 }) = &debugger.stack_pointer
313 }) = &debugger.stack_pointer
306 let path = src.clone();
315 let path = src.clone();
317+ let column = *column;
307 self.editor
318 self.editor
308 .open(path, helix_view::editor::Action::Replace)
319 .open(path, helix_view::editor::Action::Replace)
309 .unwrap();
320 .unwrap();
322+ let (view, doc) = current!(self.editor);
323+ let pos = doc.text().line_to_char(line - 1) + column;
324+ doc.set_selection(view.id, Selection::point(pos));
325+ align_view(doc, view, Align::Center);
311 self.editor.set_status(status);
327 self.editor.set_status(status);