chore: bindings for TextEdit::apply

This commit is contained in:
əlemi 2023-11-30 03:10:55 +01:00
parent 592837c664
commit 85079c0330

View file

@ -177,6 +177,7 @@ impl LuaUserData for LuaTextChange {
}))
});
methods.add_meta_method(LuaMetaMethod::ToString, |_, this, ()| Ok(format!("{:?}", this.0)));
methods.add_method("apply", |_, this, (txt,):(String,)| Ok(this.0.apply(&txt)));
}
}