diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index bac1f1712..c5b438986 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -425,6 +425,8 @@ pub fn render_gutter( let mut offset = 0; + let gutter_style = theme.get("ui.gutter"); + // avoid lots of small allocations by reusing a text buffer for each line let mut text = String::with_capacity(8); @@ -440,7 +442,7 @@ pub fn render_gutter( viewport.y + i as u16, &text, *width, - style, + gutter_style.patch(style), ); } text.clear(); diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 753defa13..fd6eb4d57 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -20,7 +20,7 @@ use tokio::time::{sleep, Duration, Instant, Sleep}; -use anyhow::{bail, Context, Error}; +use anyhow::{bail, Error}; pub use helix_core::diagnostic::Severity; pub use helix_core::register::Registers;