aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2017-07-15 20:23:15 -0600
committerRuss Cox <rsc@swtch.com>2017-07-16 02:24:41 +0000
commitb15fd97627767291628309677c40b3f40b868497 (patch)
tree8226191b297a6d66cc18e2e4b0112213e833ebf4 /src/cmd/acme
parent00b50225c203e06a4f23e1d2eb41e84116933e53 (diff)
downloadplan9port-b15fd97627767291628309677c40b3f40b868497.tar.gz
plan9port-b15fd97627767291628309677c40b3f40b868497.tar.bz2
plan9port-b15fd97627767291628309677c40b3f40b868497.zip
acme: implement Cmd-Shift-Z for Redo on Mac
Change-Id: Ie9332ed473609bd6ca156be0843dc5411cbf7b93 Reviewed-on: https://plan9port-review.googlesource.com/2941 Reviewed-by: Russ Cox <rsc@swtch.com>
Diffstat (limited to 'src/cmd/acme')
-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 7634d921..c53694c6 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -757,6 +757,10 @@ texttype(Text *t, Rune r)
typecommit(t);
undo(t, nil, nil, TRUE, 0, nil, 0);
return;
+ case Kcmd+'Z': /* %-shift-Z: redo */
+ typecommit(t);
+ undo(t, nil, nil, FALSE, 0, nil, 0);
+ return;
Tagdown:
/* expand tag to show all text */