on master help sign in
Add ui.gutter to theme all gutters (i.e. set bg)
730d3beBlaž Hrastnik
helix-term/src/ui/editor.rs+3−1
@@ -425,6 +425,8 @@ impl EditorView {
425
425
426 let mut offset = 0;
426 let mut offset = 0;
427
427
428+ let gutter_style = theme.get("ui.gutter");
429+
428 // avoid lots of small allocations by reusing a text buffer for each line
430 // avoid lots of small allocations by reusing a text buffer for each line
429 let mut text = String::with_capacity(8);
431 let mut text = String::with_capacity(8);
430
432
@@ -440,7 +442,7 @@ impl EditorView {
440 viewport.y + i as u16,
442 viewport.y + i as u16,
441 &text,
443 &text,
442 *width,
444 *width,
443− style,
445+ gutter_style.patch(style),
444 );
446 );
445 }
447 }
446 text.clear();
448 text.clear();
helix-view/src/editor.rs+1−1
@@ -20,7 +20,7 @@ use std::{
20
20
21use tokio::time::{sleep, Duration, Instant, Sleep};
21use tokio::time::{sleep, Duration, Instant, Sleep};
22
22
23−use anyhow::{bail, Context, Error};
23+use anyhow::{bail, Error};
24
24
25pub use helix_core::diagnostic::Severity;
25pub use helix_core::diagnostic::Severity;
26pub use helix_core::register::Registers;
26pub use helix_core::register::Registers;