From a0d6566140fe43a3b2e74ece1f8e753241a60cdf Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 26 Mar 2024 14:46:56 +0900 Subject: Fix regression in color-modes Fixes #10006 --- helix-term/src/ui/statusline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index 2939a257..8a87242f 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -173,7 +173,7 @@ fn render_mode<'a>(context: &RenderContext) -> Spans<'a> { " ".into() }; let modename = format!(" {} ", modename); - if config.color_modes { + if visible && config.color_modes { Span::styled( modename, match context.editor.mode() { -- cgit v1.2.3-70-g09d2