Undo (in Text Editor)

Edit | Undo

Choose this command to undo your most recent action.  Repeated use of this command will undo each action, starting with the most recent and going to the oldest. It has unlimited depth.