diff --git a/src/utils/RelativePosition.js b/src/utils/RelativePosition.js index a1e78c08..9f50e591 100644 --- a/src/utils/RelativePosition.js +++ b/src/utils/RelativePosition.js @@ -146,7 +146,7 @@ export const createRelativePositionFromTypeIndex = (type, index, assoc = 0) => { if (index === 0) { return createRelativePosition(type, null, assoc) } - index++ + index-- } while (t !== null) { if (!t.deleted && t.countable) {