slate 0.117.2 → 0.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -550,8 +550,10 @@ var GeneralTransforms = {
550
550
  }
551
551
  var preferNext = false;
552
552
  if (prev && next) {
553
- if (Path.equals(next[1], _path4)) {
554
- preferNext = !Path.hasPrevious(next[1]);
553
+ if (Path.isSibling(prev[1], _path4)) {
554
+ preferNext = false;
555
+ } else if (Path.equals(next[1], _path4)) {
556
+ preferNext = true;
555
557
  } else {
556
558
  preferNext = Path.common(prev[1], _path4).length < Path.common(next[1], _path4).length;
557
559
  }