mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
feat(lua): expose hash field in text change
This commit is contained in:
parent
2d20887509
commit
24f5bdf2a7
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ impl LuaUserData for CodempTextChange {
|
||||||
fields.add_field_method_get("content", |_, this| Ok(this.content.clone()));
|
fields.add_field_method_get("content", |_, this| Ok(this.content.clone()));
|
||||||
fields.add_field_method_get("first", |_, this| Ok(this.start));
|
fields.add_field_method_get("first", |_, this| Ok(this.start));
|
||||||
fields.add_field_method_get("last", |_, this| Ok(this.end));
|
fields.add_field_method_get("last", |_, this| Ok(this.end));
|
||||||
|
fields.add_field_method_get("hash", |_, this| Ok(this.hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
|
fn add_methods<'lua, M: LuaUserDataMethods<'lua, Self>>(methods: &mut M) {
|
||||||
|
|
Loading…
Reference in a new issue