fixed incomplete undo patch, added undo disposes

I had left out the edit.hxx file

Signed-off-by: Lennard Wasserthal <Wasserthal@nefkom.net>