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.js CHANGED
@@ -705,8 +705,10 @@ var GeneralTransforms = {
705
705
  }
706
706
  var preferNext = false;
707
707
  if (prev && next) {
708
- if (Path.equals(next[1], _path4)) {
709
- preferNext = !Path.hasPrevious(next[1]);
708
+ if (Path.isSibling(prev[1], _path4)) {
709
+ preferNext = false;
710
+ } else if (Path.equals(next[1], _path4)) {
711
+ preferNext = true;
710
712
  } else {
711
713
  preferNext = Path.common(prev[1], _path4).length < Path.common(next[1], _path4).length;
712
714
  }