Skip to content

Commit

Permalink
Fix: use ui.statusline background on mode separator
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrsp committed Dec 8, 2022
1 parent 609bbfb commit cf679f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helix-term/src/ui/statusline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ where
match config.statusline.mode_separator {
ModeSeparator::Flat => {}
_ => {
// invert the mode style background and foreground
let mode_separator_style = mode_style.map(|s| {
let mut c = s.clone();
c.fg = s.bg;
c.bg = s.fg;
c
// use mode style as mode separator style except set
// background to statusline background
let mode_separator_style = mode_style.map(|s| Style {
fg: s.bg,
bg: context.editor.theme.get("ui.statusline").bg,
..Default::default()
});

let mode_separator = match config.statusline.mode_separator {
Expand Down

0 comments on commit cf679f0

Please sign in to comment.