Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Nov 8, 2021
1 parent 09f5796 commit 8b85903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 8b85903

Please sign in to comment.