From 4af04d6a29b9be97d26dc29666963f785c07a7c6 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sun, 10 Jan 2021 00:01:56 +0100 Subject: [PATCH] fix associative relative positions --- src/utils/RelativePosition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {