From 0ee751f8135e07175fa15ef11225a1d5ccaa5956 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Sun, 19 Mar 2017 13:40:58 +0100 Subject: Add Cmd+S for save/put --- src/cmd/acme/text.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c index b8c33d12..ec72b4a8 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -781,6 +781,11 @@ texttype(Text *t, Rune r) typecommit(t); undo(t, nil, nil, TRUE, 0, nil, 0); return; + case Kcmd+'s': /* %S: save/put file */ + typecommit(t); + put(&t->w->body, nil, nil, XXX, XXX, nil, 0); + return; + Tagdown: -- cgit v1.2.3