<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" id="gedit-undo-redo" xml:lang="en_GB">

  <info>
    <link type="guide" xref="index#gedit-working-with-files" group="fifth"/>
    <desc>Revert a recent change to one of your files.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Zander Brown</mal:name>
      <mal:email>zbrown@gnome.org</mal:email>
      <mal:years>2020</mal:years>
    </mal:credit>
  </info>

  <title>Undo/redo a recent action</title>

  <p>If you make a mistake while editing a document in <app>gedit</app>, you can undo the change by pressing <keyseq><key>Ctrl</key><key>Z</key></keyseq>.</p>

  <note style="important">
    <p>You cannot undo a change after you have closed a <app>gedit</app> file.</p>
  </note>

  <p>To redo the change that was undone, press <keyseq><key>Ctrl</key><key>Shift</key><key>Z</key></keyseq>.</p>
</page>
