Fix bug in undoing merges

This commit is contained in:
Jessica B. Hamrick 2015-10-28 14:31:59 -07:00
parent 3438604ac9
commit 7c4d6908d7

View File

@ -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;