<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" version="1.1" id="edit-undo-redo" xml:lang="zh_CN">
  <info>
    <!--
        Recommended statuses: stub incomplete draft outdated review candidate final
    -->
    <revision version="40" date="2021-08-22" status="draft"/>

    <credit type="author copyright">
      <name>Fionn Kelleher</name>
      <email>self@osslate.net</email>
      <years>2021</years>
    </credit>

    <link type="guide" xref="index#edit"/>
    <link type="seealso" xref="edit-draft-folder"/>

    <desc>修复编辑过程中出现的错误</desc>
    <keywords>撤销、重做、放弃更改</keywords>
  </info>

  <title>撤销、重做或放弃更改</title>

  <p>GNOME 文本编辑器自动跟踪编辑文件时所做的更改。编辑时可以撤消和重做更改，从而轻松修复错误。</p>

  <note style="important">
    <p>
      Changes tracked for a file will be lost after closing it, or after
      <link xref="#discard_changes">discarding changes</link>.
    </p>
  </note>

  <section id="redo_and_redo">
    <title>撤销或重做一个更改</title>
    <p>按 <keyseq> <key>Ctrl</key> <key>Z</key> </keyseq> 将撤消对文件所做的最后更改。 重复使用此快捷键将继续撤消最初所做的更改。</p>

    <p>按 <keyseq> <key>Ctrl</key> <key>Shift</key> <key>Z</key> </keyseq> 键将重做文件中最后撤消的更改。 重复使用此快捷键将继续重做最初所做的更改。</p>
    <note style="important">
      <p>
        Changes can be redone <em>only</em> if the previous editing operation 
        was undo or redo.
        For example, typing text into a file directly after undoing a change 
        will prevent redoing the last undone change.
      </p>
    </note>
  </section>

  <section id="discard_changes">
    <title>放弃自上次保存后的所有更改</title>
    <p><guiseq> <gui>菜单</gui> <gui>放弃更改</gui> </guiseq> 将永久放弃自上次保存以来对文件所做的所有更改。</p>
  </section>

</page>
