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 { if context.editor.tree.zoom {
"[zoom]".into() write(context, "[zoom]".to_string(), None)
} else {
Spans::default()
} }
} }

Loading…
Cancel
Save