aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme/text.c')
-rw-r--r--src/cmd/acme/text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index e5541a69..57fd8212 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -751,6 +751,10 @@ texttype(Text *t, Rune r)
typecommit(t);
cut(t, t, nil, TRUE, FALSE, nil, 0);
return;
+ case Kcmd+'z': /* %Z: undo */
+ typecommit(t);
+ undo(t, nil, nil, TRUE, 0, nil, 0);
+ return;
Tagdown:
/* expand tag to show all text */