getOffsetBeforeChange(offset) {
        this.adjustNextEdit(offset);
        return this.translateCurToOld(offset);
    }
@param offset Must be equal to or greater than the last offset this method has been called with.