Revert "Made //undo and //redo disregard global masks."
This does nothing and neither did the original code. Disregard previous notice.
This reverts commit cfb19eba9b5167ec1267791e5d8e8fe358acdc26.