mirror of
https://github.com/helix-editor/helix.git
synced 2024-10-26 11:13:20 +03:00
Fixed formatting
This commit is contained in:
parent
15469db81f
commit
257dd67650
@ -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 @@ 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user