Revert "Fixed bug where undo after contiguous selection would sometimes"
This reverts commit 27bbf168b1a422153093d03d8c68f14923a91c98.