Populate deferred operations when an operation can't be applied

This commit is contained in:
Antonio Scandurra committed 2022-01-05 15:04:19 +01:00
1 parent 2f15acde6f
commit ce6beabe7a
1 file changed
+1
+1
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