@@ -2268,13 +2268,13 @@ mod cmd {
2268 let pos = doc.selection(view.id).primary().cursor(text);
2268 let pos = doc.selection(view.id).primary().cursor(text);
2269 let line = text.char_to_line(pos) + 1; // 1-indexing in DAP, 0-indexing in Helix
2269 let line = text.char_to_line(pos) + 1; // 1-indexing in DAP, 0-indexing in Helix
2270 let path = match doc.path() {
2270 let path = match doc.path() {
2271− Some(path) => path.to_path_buf(),
2271+ Some(path) => path,
2272 None => return None,
2272 None => return None,
2275− let breakpoints = editor.breakpoints.get(&path).unwrap_or(&vec);
2274+ editor.breakpoints.get(path).and_then(|breakpoints| {
2276− let i = breakpoints.iter().position(|b| b.line == line);
2275+ let i = breakpoints.iter().position(|b| b.line == line);
2277− i.map(|i| (i, breakpoints.get(i).unwrap().clone()))
2276+ i.map(|i| (i, breakpoints[i].clone()))
2280 fn debug_start(
2280 fn debug_start(