From bd384a2a633e21cd7deff7ed2a29a9c03a63a20e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 5 Jan 2020 11:18:13 +0100 Subject: Re-enable *, _ and `. --- src/library/align.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/library/align.rs') diff --git a/src/library/align.rs b/src/library/align.rs index 524ada61..03d905cd 100644 --- a/src/library/align.rs +++ b/src/library/align.rs @@ -1,16 +1,17 @@ use crate::func::prelude::*; use super::maps::{PosAxisMap, AlignmentKey}; + function! { /// `align`: Aligns content along the layouting axes. #[derive(Debug, PartialEq)] - pub struct Align { + pub struct AlignFunc { body: Option, map: PosAxisMap, } parse(args, body, ctx) { - Align { + AlignFunc { body: parse!(optional: body, ctx), map: PosAxisMap::new(&mut args)?, } @@ -28,7 +29,7 @@ function! { match &self.body { Some(body) => vec![AddMultiple(layout(&body, ctx)?)], - None => vec![Command::SetAlignment(ctx.alignment)], + None => vec![SetAlignment(ctx.alignment)], } } } -- cgit v1.2.3