Fixed formatting

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

@ -2497,7 +2497,9 @@ fn set_max_width(
return Ok(());
}
let Some(width) = args.first() else { bail!(":set-max-width takes one argument") };
let Some(width) = args.first() else {
bail!(":set-max-width takes one argument")
};
let width = width.parse()?;
cx.editor.tree.max_width = width;
cx.editor.tree.recalculate();

@ -535,7 +535,8 @@ where
fn render_zoom<F>(context: &mut RenderContext, write: F)
where
F: Fn(&mut RenderContext, String, Option<Style>) + Copy, {
F: Fn(&mut RenderContext, String, Option<Style>) + Copy,
{
if context.editor.tree.zoom {
write(context, "[zoom]".to_string(), None)
}

Loading…
Cancel
Save