From 210a7e1c1275f9dc232bb9d52e1604df0f2f6a91 Mon Sep 17 00:00:00 2001 From: s0LA1337 Date: Sun, 2 Oct 2022 17:40:23 +0000 Subject: [PATCH] patch full style instead of just the foreground --- helix-term/src/ui/editor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 6a26d0c4..6e083885 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -443,7 +443,8 @@ impl EditorView { for i in starting_indent..(indent_level / tab_width as u16) { if config.indent_guides.rainbow { let color_index: usize = i as usize % theme.rainbow_length(); - indent_guide_style.fg = theme.get(&format!("rainbow.{}", color_index)).fg; + indent_guide_style = + indent_guide_style.patch(theme.get(&format!("rainbow.{}", color_index))); } surface.set_string(