Unnamed repository; edit this file 'description' to name the repository.
Fix regression in color-modes
Fixes #10006
Blaž Hrastnik 2024-03-26
parent 3205bc4 · commit a0d6566
-rw-r--r--helix-term/src/ui/statusline.rs2
1 files changed, 1 insertions, 1 deletions
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() {