fix associative relative positions

This commit is contained in:
Kevin Jahns 2021-01-10 00:01:56 +01:00
parent 32b734b24d
commit 4af04d6a29

View File

@ -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) {