Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Fix active line number highlighting regression (#28015)

Finn Evers9693eab09862
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 10801912f70..5feed4e0db6 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -2410,13 +2410,11 @@ impl EditorElement {
let color = active_rows
.get(&display_row)
- .and_then(|spec| {
+ .map(|spec| {
if spec.breakpoint {
- Some(cx.theme().colors().debugger_accent)
- } else if spec.selection {
- Some(cx.theme().colors().editor_active_line_number)
+ cx.theme().colors().debugger_accent
} else {
- None
+ cx.theme().colors().editor_active_line_number
}
})
.unwrap_or_else(|| cx.theme().colors().editor_line_number);