diff --git a/src/editor/model.js b/src/editor/model.js index 75ab1d7706..34a796f733 100644 --- a/src/editor/model.js +++ b/src/editor/model.js @@ -388,7 +388,6 @@ export default class EditorModel { currentOffset += partLen; return false; }); - return new DocumentPosition(index, totalOffset - currentOffset); }