Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Disable selection highlights for single line editor (#26805)
Smit Barmasee5d2678d94ba
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 809a286fb8e..94d3ac4383a 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -4949,6 +4949,9 @@ impl Editor {window: &mut Window,cx: &mut Context<Editor>,) {+ if matches!(self.mode, EditorMode::SingleLine { .. }) {+ return;+ }self.selection_highlight_task.take();if !EditorSettings::get_global(cx).selection_highlight {self.clear_background_highlights::<SelectedTextHighlight>(cx);