prosemirror-transform 1.4.1 → 1.4.2

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
@@ -1441,7 +1441,7 @@ Fitter.prototype.placeNodes = function placeNodes (ref) {
1441
1441
  };
1442
1442
 
1443
1443
  Fitter.prototype.mustMoveInline = function mustMoveInline () {
1444
- if (!this.$to.parent.isTextblock || this.$to.end() == this.$to.pos) { return -1 }
1444
+ if (!this.$to.parent.isTextblock) { return -1 }
1445
1445
  var top = this.frontier[this.depth], level;
1446
1446
  if (!top.type.isTextblock || !contentAfterFits(this.$to, this.$to.depth, top.type, top.match, false) ||
1447
1447
  (this.$to.depth == this.depth && (level = this.findCloseLevel(this.$to)) && level.depth == this.depth)) { return -1 }