Populate deferred operations when an operation can't be applied

This commit is contained in:
Antonio Scandurra 2022-01-05 15:04:19 +01:00
parent bf044506ed
commit 587a908225

View file

@ -1342,6 +1342,7 @@ impl Buffer {
})
.collect::<Vec<_>>();
self.text.apply_ops(buffer_ops)?;
self.deferred_ops.insert(deferred_ops);
self.flush_deferred_ops(cx);
self.did_edit(&old_version, was_dirty, cx);
// Notify independently of whether the buffer was edited as the operations could include a