mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 16:56:36 +02:00
fix path transformation bug when moving exactly
This commit is contained in:
@@ -352,10 +352,10 @@ function transform(path, operation) {
|
|||||||
|
|
||||||
if (pAbove) {
|
if (pAbove) {
|
||||||
path = np.concat(path.slice(p.size))
|
path = np.concat(path.slice(p.size))
|
||||||
|
} else if (pEqual) {
|
||||||
|
path = np
|
||||||
} else {
|
} else {
|
||||||
if (pEqual) {
|
if (pYounger) {
|
||||||
path = np
|
|
||||||
} else if (pYounger) {
|
|
||||||
path = decrement(path, 1, pIndex)
|
path = decrement(path, 1, pIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user