If there is no live debugger, treat breakpoints as unverified

imgbot
Blaž Hrastnik 3 years ago
parent 2e1aa5f15b
commit e2a23ac0b5

@ -525,11 +525,7 @@ impl EditorView {
if let Some(breakpoint) = user.iter().find(|breakpoint| breakpoint.line - 1 == line) if let Some(breakpoint) = user.iter().find(|breakpoint| breakpoint.line - 1 == line)
{ {
let unverified = match dbg_breakpoints { let verified = debugger_breakpoint.map(|b| b.verified).unwrap_or(false);
Some(_) => debugger_breakpoint.map(|b| !b.verified).unwrap_or(true),
// We cannot mark breakpoint as unverified unless we have a debugger
None => false,
};
let mut style = let mut style =
if breakpoint.condition.is_some() && breakpoint.log_message.is_some() { if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
error.add_modifier(Modifier::UNDERLINED) error.add_modifier(Modifier::UNDERLINED)
@ -540,7 +536,7 @@ impl EditorView {
} else { } else {
warning warning
}; };
if unverified { if !verified {
// Faded colors // Faded colors
style = if let Some(Color::Rgb(r, g, b)) = style.fg { style = if let Some(Color::Rgb(r, g, b)) = style.fg {
style.fg(Color::Rgb( style.fg(Color::Rgb(

Loading…
Cancel
Save