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:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user