Undo works for undoing a single edit item

Undo works for undo editing a single cell and undoing a single replace.