Skip to content

Commit 1397636

Browse files
committed
Support spec.keepAdjacent in joinForwards and joinBackwards
1 parent ca85fa2 commit 1397636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ function deleteBarrier(state, $cut, dispatch) {
385385

386386
let canDelAfter = $cut.parent.canReplace($cut.index(), $cut.index() + 1)
387387
if (canDelAfter &&
388+
!before.type.spec.keepAdjacent &&
388389
(conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&
389390
match.matchType(conn[0] || after.type).validEnd) {
390391
if (dispatch) {

0 commit comments

Comments
 (0)