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

View file

@ -173,7 +173,7 @@ fn render_mode<'a>(context: &RenderContext) -> Spans<'a> {
" ".into() " ".into()
}; };
let modename = format!(" {} ", modename); let modename = format!(" {} ", modename);
if config.color_modes { if visible && config.color_modes {
Span::styled( Span::styled(
modename, modename,
match context.editor.mode() { match context.editor.mode() {