mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 16:14:48 +01:00
fix: ack is not async. misnamed textchange fields.
This commit is contained in:
parent
3956d4a27d
commit
fb8076dbf5
2 changed files with 6 additions and 7 deletions
|
@ -72,9 +72,8 @@ impl BufferController {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pyo3(name = "ack")]
|
#[pyo3(name = "ack")]
|
||||||
fn pyack(&self, py: Python, v: Vec<u64>) -> PyResult<()> {
|
fn pyack(&self, py: Python, v: Vec<i64>) -> () {
|
||||||
let this = self.clone();
|
self.ack(v)
|
||||||
a_sync_allow_threads!(py, this.ack(v))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pyo3(name = "send")]
|
#[pyo3(name = "send")]
|
||||||
|
|
|
@ -279,14 +279,14 @@ impl TextChange {
|
||||||
) -> PyResult<Self> {
|
) -> PyResult<Self> {
|
||||||
if let Some(kwds) = kwds {
|
if let Some(kwds) = kwds {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
start_idx,
|
start_idx: start,
|
||||||
end_idx,
|
end_idx: end,
|
||||||
content,
|
content,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
start_idx,
|
start_idx: start,
|
||||||
end_idx,
|
end_idx: end,
|
||||||
content,
|
content,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue