Fix out of sync when deleting on same cursor position on several clients

from: https://github.com/aullman/opentok-editor/issues/4
This commit is contained in:
Wu Cheng-Han 2017-02-18 20:11:57 +08:00
parent 0aaa598130
commit 0bea4da623
2 changed files with 4 additions and 2 deletions

View file

@ -343,7 +343,9 @@ ot.CodeMirrorAdapter = (function (global) {
};
CodeMirrorAdapter.prototype.applyOperation = function (operation) {
if (!operation.isNoop()) {
this.ignoreNextChange = true;
}
CodeMirrorAdapter.applyOperationToCodeMirror(operation, this.cm);
};

File diff suppressed because one or more lines are too long