mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 23:44:55 +01:00
fix: don't send noops
This commit is contained in:
parent
eeb72545c6
commit
a8d0cb0666
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ impl OperationFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn apply(&mut self, op: OperationSeq) -> Result<OperationSeq, OTError> {
|
fn apply(&mut self, op: OperationSeq) -> Result<OperationSeq, OTError> {
|
||||||
|
if op.is_noop() { return Err(OTError) }
|
||||||
self.content = op.apply(&self.content)?;
|
self.content = op.apply(&self.content)?;
|
||||||
self.queue.push_back(op.clone());
|
self.queue.push_back(op.clone());
|
||||||
Ok(op)
|
Ok(op)
|
||||||
|
|
Loading…
Reference in a new issue