Fix regression in color-modes

Fixes #10006
pull/10008/head
Blaž Hrastnik 8 months ago
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() " ".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() {

Loading…
Cancel
Save