From 730d3be2010adbd2c43b7cdf1a256a15ef97e3f2 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 14 Dec 2021 00:52:15 +0900 Subject: Add ui.gutter to theme all gutters (i.e. set bg) --- helix-term/src/ui/editor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-term') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index bac1f171..c5b43898 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -425,6 +425,8 @@ impl EditorView { 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 @@ impl EditorView { viewport.y + i as u16, &text, *width, - style, + gutter_style.patch(style), ); } text.clear(); -- cgit v1.2.3-70-g09d2