aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-08 01:03:08 +0000
committerBlaž Hrastnik2021-11-08 01:03:08 +0000
commit8b85903116fdfdc177bf2ca171831674144de70a (patch)
tree65458c5a1ef79bdeed43e7c6f5c8858222e192bc /helix-term
parent09f5796537ffe0ae6b1278fc4d783a7c2eb4b8c1 (diff)
wip
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs1
-rw-r--r--helix-term/src/ui/editor.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 0fb4e479..faf93b09 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -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);
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 3cc4cc4a..2ee7f0ea 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -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| {