Add ui.gutter to theme all gutters (i.e. set bg)

This commit is contained in:
Blaž Hrastnik 2021-12-14 00:52:15 +09:00
parent c7ace15fd4
commit 730d3be201
2 changed files with 4 additions and 2 deletions

View File

@ -425,6 +425,8 @@ pub fn render_gutter(
let mut offset = 0; let mut offset = 0;
let gutter_style = theme.get("ui.gutter");
// avoid lots of small allocations by reusing a text buffer for each line // avoid lots of small allocations by reusing a text buffer for each line
let mut text = String::with_capacity(8); let mut text = String::with_capacity(8);
@ -440,7 +442,7 @@ pub fn render_gutter(
viewport.y + i as u16, viewport.y + i as u16,
&text, &text,
*width, *width,
style, gutter_style.patch(style),
); );
} }
text.clear(); text.clear();

View File

@ -20,7 +20,7 @@
use tokio::time::{sleep, Duration, Instant, Sleep}; 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::diagnostic::Severity;
pub use helix_core::register::Registers; pub use helix_core::register::Registers;