aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2024-03-26 05:46:56 +0000
committerBlaž Hrastnik2024-03-26 05:46:56 +0000
commita0d6566140fe43a3b2e74ece1f8e753241a60cdf (patch)
tree7907f778568b12eae189f10cfe3242c826f9bfec
parent3205bc413217e6eb3759b192c903082e578d279c (diff)
Fix regression in color-modes
Fixes #10006
-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() {