mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Fix bug in undoing merges
This commit is contained in:
parent
3438604ac9
commit
7c4d6908d7
@ -1027,6 +1027,13 @@ define(function (require) {
|
||||
this.select(cursor_ix_after);
|
||||
}
|
||||
|
||||
// Check if the cells were after the cursor
|
||||
for (var i=0; i < indices.length; i++) {
|
||||
if (indices[i] > cursor_ix_before) {
|
||||
this.undelete_below = true;
|
||||
}
|
||||
}
|
||||
|
||||
// This will put all the deleted cells back in one location, rather than
|
||||
// where they came from. It will do until we have proper undo support.
|
||||
this.undelete_index = cursor_ix_after;
|
||||
|
Loading…
Reference in New Issue
Block a user