on master help sign in
wip
commit8b85903116fdfdc177bf2ca171831674144de70a authorBlaž Hrastnik <blaz@mxxn.io> dateMon 8 Nov 2021, 10:03 (5 years ago) parent09f5796
2 files changed+3
helix-term/src/application.rs+1 helix-term/src/ui/editor.rs+2
helix-term/src/application.rs+1
@@ -381,6 +381,7 @@ impl Application {
381381 Some(i) => {
382382 let item = debugger.breakpoints.get_mut(i).unwrap();
383383 item.verified = breakpoint.verified;
384+ // TODO: wasteful clones
384385 item.message = breakpoint.message.or_else(|| item.message.clone());
385386 item.source = breakpoint.source.or_else(|| item.source.clone());
386387 item.line = breakpoint.line.or(item.line);
helix-term/src/ui/editor.rs+2
@@ -499,6 +499,8 @@ impl EditorView {
499499
500500 let selected = cursors.contains(&line);
501501
502+ // TODO: debugger should translate received breakpoints to 0-indexing
503+
502504 if let Some(user) = breakpoints.as_ref() {
503505 let debugger_breakpoint = if let Some(debugger) = dbg_breakpoints.as_ref() {
504506 debugger.iter().find(|breakpoint| {