1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-09 08:46:35 +02:00

fix path transformation bug when moving exactly

This commit is contained in:
Ian Storm Taylor
2018-11-09 16:39:11 -08:00
parent f3922ed2f7
commit 03d531ba77

View File

@@ -352,10 +352,10 @@ function transform(path, operation) {
if (pAbove) {
path = np.concat(path.slice(p.size))
} else if (pEqual) {
path = np
} else {
if (pEqual) {
path = np
} else if (pYounger) {
if (pYounger) {
path = decrement(path, 1, pIndex)
}