on master help sign in
If there is no live debugger, treat breakpoints as unverified
e2a23acBlaž Hrastnik
helix-term/src/ui/editor.rs+2−6
@@ -525,11 +525,7 @@ impl EditorView {
525
525
526 if let Some(breakpoint) = user.iter().find(|breakpoint| breakpoint.line - 1 == line)
526 if let Some(breakpoint) = user.iter().find(|breakpoint| breakpoint.line - 1 == line)
527 {
527 {
528− let unverified = match dbg_breakpoints {
529− Some(_) => debugger_breakpoint.map(|b| !b.verified).unwrap_or(true),
528+ let verified = debugger_breakpoint.map(|b| b.verified).unwrap_or(false);
530− // We cannot mark breakpoint as unverified unless we have a debugger
531− None => false,
532− };
533 let mut style =
529 let mut style =
534 if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
530 if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
535 error.add_modifier(Modifier::UNDERLINED)
531 error.add_modifier(Modifier::UNDERLINED)
@@ -540,7 +536,7 @@ impl EditorView {
540 } else {
536 } else {
541 warning
537 warning
542 };
538 };
543− if unverified {
539+ if !verified {
544 // Faded colors
540 // Faded colors
545 style = if let Some(Color::Rgb(r, g, b)) = style.fg {
541 style = if let Some(Color::Rgb(r, g, b)) = style.fg {
546 style.fg(Color::Rgb(
542 style.fg(Color::Rgb(