Fixed statusline breaking change

pull/9838/head
Elizabeth 7 months ago
parent ca55729159
commit 15469db81f
No known key found for this signature in database
GPG Key ID: CA216582906ECF8E

@ -533,10 +533,10 @@ where
}
}
fn render_zoom<'a>(context: &RenderContext) -> Spans<'a> {
fn render_zoom<F>(context: &mut RenderContext, write: F)
where
F: Fn(&mut RenderContext, String, Option<Style>) + Copy, {
if context.editor.tree.zoom {
"[zoom]".into()
} else {
Spans::default()
write(context, "[zoom]".to_string(), None)
}
}

Loading…
Cancel
Save