Ctrl+Z or Edit>Undo both do not affect the ST editor.
So accidentally deleting something is irreversible.