Fixed formatting

This commit is contained in:
Elizabeth 2024-05-10 15:51:26 +01:00
parent 15469db81f
commit 257dd67650
No known key found for this signature in database
GPG Key ID: CA216582906ECF8E
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -535,7 +535,8 @@ fn render_register<F>(context: &mut RenderContext, write: F)
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)
}