Skip to content
Snippets Groups Projects
Commit 2d01d7d1 authored by Bryan Massoth's avatar Bryan Massoth
Browse files

Subtract by 3 to account for the 2 extra parameters for splice and for replacing an existing part.

parent f74034ef
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ export function removeReadOnlyRanges(doc, from, to) {
if (dto > 0 || !mk.inclusiveRight && !dto)
newParts.push({from: m.to, to: p.to})
parts.splice.apply(parts, newParts)
j += newParts.length - 1
j += newParts.length - 3
}
}
return parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment