1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00

Fix regression in color-modes

Fixes #10006
This commit is contained in:
Blaž Hrastnik 2024-03-26 14:46:56 +09:00
parent 3205bc4132
commit a0d6566140
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -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() {