aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-06 15:47:53 +0000
committerBlaž Hrastnik2021-11-06 15:48:34 +0000
commite2a23ac0b50ad743fa43d0e0cf4492805119e3c8 (patch)
treeefe61c76d46ab8dbfec1f6fbcd61e21bc2b5ece3
parent2e1aa5f15bf0a56be0c44a86276cc9efea16ccbc (diff)
If there is no live debugger, treat breakpoints as unverified
-rw-r--r--helix-term/src/ui/editor.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 054bb2c2..4947706a 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -525,11 +525,7 @@ impl EditorView {
if let Some(breakpoint) = user.iter().find(|breakpoint| breakpoint.line - 1 == line)
{
- let unverified = match dbg_breakpoints {
- Some(_) => debugger_breakpoint.map(|b| !b.verified).unwrap_or(true),
- // We cannot mark breakpoint as unverified unless we have a debugger
- None => false,
- };
+ let verified = debugger_breakpoint.map(|b| b.verified).unwrap_or(false);
let mut style =
if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
error.add_modifier(Modifier::UNDERLINED)
@@ -540,7 +536,7 @@ impl EditorView {
} else {
warning
};
- if unverified {
+ if !verified {
// Faded colors
style = if let Some(Color::Rgb(r, g, b)) = style.fg {
style.fg(Color::Rgb(