summaryrefslogtreecommitdiff
path: root/usr.bin/mg/funmap.c
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-05-27 08:08:19 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-05-27 08:08:19 +0000
commit0d2991c584ff46d1969268d0d449da3d41460aac (patch)
treee7c445cd7b0d2889c1e10cee5772d8585f201856 /usr.bin/mg/funmap.c
parent01b5e624bc03f48e6b93c9542088caa94ee45e8d (diff)
Add emacs-style replace-string function that does not prompt you
to confirm replacements. OK jason, deraadt
Diffstat (limited to 'usr.bin/mg/funmap.c')
-rw-r--r--usr.bin/mg/funmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c
index 72a7fa66016..07857e7f7ee 100644
--- a/usr.bin/mg/funmap.c
+++ b/usr.bin/mg/funmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: funmap.c,v 1.12 2005/04/28 07:23:56 otto Exp $ */
+/* $OpenBSD: funmap.c,v 1.13 2005/05/27 08:08:18 cloder Exp $ */
/*
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved.
*
@@ -175,6 +175,7 @@ static struct funmap functnames[] = {
{showcwdir, "pwd",},
#endif /* !NO_DIR */
{queryrepl, "query-replace",},
+ {replstr, "replace-string",},
#ifdef REGEX
{re_queryrepl, "query-replace-regexp",},
#endif /* REGEX */