diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index 2939a2573..8a87242f9 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() {