diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index fb64f1f78..cc81b9380 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -189,7 +189,6 @@ impl EditorView { primary_cursor, }); } - let config = doc.config.load(); if config.enable_diagnostics { diff --git a/helix-view/src/handlers/diagnostics.rs b/helix-view/src/handlers/diagnostics.rs index ed6a8b98d..a9fbbf8fd 100644 --- a/helix-view/src/handlers/diagnostics.rs +++ b/helix-view/src/handlers/diagnostics.rs @@ -104,7 +104,6 @@ impl DiagnosticsHandler { self.active_generation .store(self.generation.get(), atomic::Ordering::Relaxed); } - pub fn show_cursorline_diagnostics(&self, doc: &Document, view: ViewId) -> bool { if !self.active || !doc.config.load().enable_diagnostics { return false;