提交 e49274ba 编写于 作者: A Alex Dima

Better handling of empty edits

上级 4716f2e5
......@@ -162,6 +162,9 @@ export class EditableTextModel extends TextModelWithDecorations implements Edito
}
public applyEdits(rawOperations:EditorCommon.IIdentifiedSingleEditOperation[]): EditorCommon.IIdentifiedSingleEditOperation[] {
if (rawOperations.length === 0) {
return [];
}
let operations:IValidatedEditOperation[] = [];
for (let i = 0; i < rawOperations.length; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册