Skip to content

Commit

Permalink
Splitting cells should maintain the current edit state (#236507)
Browse files Browse the repository at this point in the history
* split cell command should be in editing mode

* stay in preview if splitting from that state

* writing the PR description made me realize that this was way simpler
  • Loading branch information
Yoyokrazy authored Dec 18, 2024
1 parent 4c3f5de commit d6d5ebe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ registerAction2(class extends NotebookCellAction {
],
{ quotableLabel: 'Split Notebook Cell' }
);

context.notebookEditor.cellAt(index + 1)?.updateEditState(cell.getEditState(), 'splitCell');
}
}
}
Expand Down

0 comments on commit d6d5ebe

Please sign in to comment.