Fix the cursor position when a remote patch is applied
This commit is contained in:
1 parent
5bb2e12db2
commit
492054a938
2 files changed
+48
-6
No files matched your search
@@ -92,6 +92,7 @@ var applyChange = function(ctx, oldval, newval, logging) {
|
||||
};
|
||||
|
||||
var transformCursor = function (cursor, op) {
|
||||
if (!op) { return cursor; }
|
||||
var pos = op.offset;
|
||||
var remove = op.toRemove;
|
||||
var insert = op.toInsert.length;
|
||||
|
||||
Reference in new issue
Block a user