From 94305a5a82ebaebf43d6575bb243a00bc1c71472 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:31:25 +0000 Subject: [PATCH] style: remove accidentally added newlines --- helix-term/src/ui/editor.rs | 1 - helix-view/src/handlers/diagnostics.rs | 1 - 2 files changed, 2 deletions(-) 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;