This commit is contained in:
Blaž Hrastnik 2021-11-08 10:03:08 +09:00
parent 09f5796537
commit 8b85903116
2 changed files with 3 additions and 0 deletions

View file

@ -381,6 +381,7 @@ impl Application {
Some(i) => {
let item = debugger.breakpoints.get_mut(i).unwrap();
item.verified = breakpoint.verified;
// TODO: wasteful clones
item.message = breakpoint.message.or_else(|| item.message.clone());
item.source = breakpoint.source.or_else(|| item.source.clone());
item.line = breakpoint.line.or(item.line);

View file

@ -499,6 +499,8 @@ impl EditorView {
let selected = cursors.contains(&line);
// TODO: debugger should translate received breakpoints to 0-indexing
if let Some(user) = breakpoints.as_ref() {
let debugger_breakpoint = if let Some(debugger) = dbg_breakpoints.as_ref() {
debugger.iter().find(|breakpoint| {