Add ui.gutter to theme all gutters (i.e. set bg)
commit730d3be2010adbd2c43b7cdf1a256a15ef97e3f2
authorBlaž Hrastnik <blaz@mxxn.io>
dateTue 14 Dec 2021, 00:52 (5 years ago)
parentc7ace15
helix-term/src/ui/editor.rs+3−1
@@ -425,6 +425,8 @@ impl EditorView {
425425
426426 let mut offset = 0;
427427
428+ let gutter_style = theme.get("ui.gutter");
429+
428430 // avoid lots of small allocations by reusing a text buffer for each line
429431 let mut text = String::with_capacity(8);
430432
@@ -440,7 +442,7 @@ impl EditorView {
440442 viewport.y + i as u16,
441443 &text,
442444 *width,
443− style,
445+ gutter_style.patch(style),
444446 );
445447 }
446448 text.clear();
helix-view/src/editor.rs+1−1
@@ -20,7 +20,7 @@ use std::{
2020
2121use tokio::time::{sleep, Duration, Instant, Sleep};
2222
23−use anyhow::{bail, Context, Error};
23+use anyhow::{bail, Error};
2424
2525pub use helix_core::diagnostic::Severity;
2626pub use helix_core::register::Registers;