Skip to content

Commit 3a389c7

Browse files
committed
fix(hotkeys): split at cursor should place cursor at thestart
1 parent 5ff46bd commit 3a389c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/view/actions/keyboard-shortcuts/helpers/commands/commands/helpers/save-node-and-insert-node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ export const saveNodeAndInsertNode = (
2424
},
2525
});
2626
if (content) {
27+
const newNodeId = view.viewStore.getValue().document.activeNode;
2728
if (direction === 'down' || direction === 'right') {
28-
view.inlineEditor.setNodeCursor(nodeId, { line: 0, ch: 0 });
29+
view.inlineEditor.setNodeCursor(newNodeId, { line: 0, ch: 0 });
2930
}
3031
}
3132
};

0 commit comments

Comments
 (0)