Skip to content

Commit

Permalink
Add ui.gutter to theme all gutters (i.e. set bg)
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Dec 13, 2021
1 parent c7ace15 commit 730d3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -440,7 +442,7 @@ impl EditorView {
viewport.y + i as u16,
&text,
*width,
style,
gutter_style.patch(style),
);
}
text.clear();
Expand Down
2 changes: 1 addition & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::{

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;
Expand Down

0 comments on commit 730d3be

Please sign in to comment.