Отмяна на последно действие

If you make a mistake while using gedit, you can undo it by pressing Ctrl+Z.

You cannot undo a change after you have closed a gedit file.