mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-25 06:14:54 +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")]
|
||||
fn pyack(&self, py: Python, v: Vec<u64>) -> PyResult<()> {
|
||||
let this = self.clone();
|
||||
a_sync_allow_threads!(py, this.ack(v))
|
||||
fn pyack(&self, py: Python, v: Vec<i64>) -> () {
|
||||
self.ack(v)
|
||||
}
|
||||
|
||||
#[pyo3(name = "send")]
|
||||
|
|
|
@ -279,14 +279,14 @@ impl TextChange {
|
|||
) -> PyResult<Self> {
|
||||
if let Some(kwds) = kwds {
|
||||
Ok(Self {
|
||||
start_idx,
|
||||
end_idx,
|
||||
start_idx: start,
|
||||
end_idx: end,
|
||||
content,
|
||||
})
|
||||
} else {
|
||||
Ok(Self {
|
||||
start_idx,
|
||||
end_idx,
|
||||
start_idx: start,
|
||||
end_idx: end,
|
||||
content,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue