Skip to content

Commit 0bea4da

Browse files
committed
Fix out of sync when deleting on same cursor position on several clients
from: aullman/opentok-editor#4
1 parent 0aaa598 commit 0bea4da

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

public/vendor/ot/codemirror-adapter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ ot.CodeMirrorAdapter = (function (global) {
343343
};
344344

345345
CodeMirrorAdapter.prototype.applyOperation = function (operation) {
346-
this.ignoreNextChange = true;
346+
if (!operation.isNoop()) {
347+
this.ignoreNextChange = true;
348+
}
347349
CodeMirrorAdapter.applyOperationToCodeMirror(operation, this.cm);
348350
};
349351

0 commit comments

Comments
 (0)