Skip to content

Commit

Permalink
Merge branch 'helix-editor:master' into rust_field_textobject
Browse files Browse the repository at this point in the history
  • Loading branch information
uek-1 authored Feb 16, 2024
2 parents 429f5ef + 76e512f commit 4479a13
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions helix-view/src/handlers/dap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,15 @@ impl Editor {
breakpoints.iter().position(|b| b.id == breakpoint.id)
{
breakpoints[i].verified = breakpoint.verified;
breakpoints[i].message = breakpoint.message.clone();
breakpoints[i].line =
breakpoint.line.unwrap().saturating_sub(1); // TODO: no unwrap
breakpoints[i].column = breakpoint.column;
breakpoints[i].message = breakpoint
.message
.clone()
.or_else(|| breakpoints[i].message.take());
breakpoints[i].line = breakpoint
.line
.map_or(breakpoints[i].line, |line| line.saturating_sub(1));
breakpoints[i].column =
breakpoint.column.or(breakpoints[i].column);
}
}
}
Expand Down

0 comments on commit 4479a13

Please sign in to comment.