summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2019-06-22 15:38:15 +0000
committerlum <lum@openbsd.org>2019-06-22 15:38:15 +0000
commitf1eb72fadbac31250c073e2914db583bd8b32d85 (patch)
treede0f96eec6ae5fb65d6ff05bc58223e94e8bbe10
parentOffering to add a new line at the end of the buffer didn't consider if (diff)
downloadwireguard-openbsd-f1eb72fadbac31250c073e2914db583bd8b32d85.tar.xz
wireguard-openbsd-f1eb72fadbac31250c073e2914db583bd8b32d85.zip
Tidy up the comments:
1. two spelling mistakes. 2. change references to keystrokes, same as man page (UP-low). 3. update a filename reference to reality.
-rw-r--r--usr.bin/mg/buffer.c4
-rw-r--r--usr.bin/mg/def.h6
-rw-r--r--usr.bin/mg/extend.c4
-rw-r--r--usr.bin/mg/key.h4
-rw-r--r--usr.bin/mg/log.c4
-rw-r--r--usr.bin/mg/main.c4
-rw-r--r--usr.bin/mg/util.c10
7 files changed, 18 insertions, 18 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index e1e3da2b2cf..256ef563297 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.105 2018/12/13 14:59:16 lum Exp $ */
+/* $OpenBSD: buffer.c,v 1.106 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
@@ -292,7 +292,7 @@ static struct KEYMAPE (2) listbufmap = {
* in two parts. The "makelist" routine figures out
* the text, and puts it in a buffer. "popbuf"
* then pops the data onto the screen. Bound to
- * "C-X C-B".
+ * "C-x C-b".
*/
/* ARGSUSED */
int
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 68080daa394..427523e6f77 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.158 2019/06/22 10:21:57 lum Exp $ */
+/* $OpenBSD: def.h,v 1.159 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
@@ -46,7 +46,7 @@ typedef int (*PF)(int, int); /* generally useful type */
* flag controls the clearing versus appending
* of data in the kill buffer.
*/
-#define CFCPCN 0x0001 /* Last command was C-P, C-N */
+#define CFCPCN 0x0001 /* Last command was C-p or C-n */
#define CFKILL 0x0002 /* Last command was a kill */
#define CFINS 0x0004 /* Last command was self-insert */
@@ -526,7 +526,7 @@ int swapmark(int, int);
int gotoline(int, int);
int setlineno(int);
-/* random.c X */
+/* util.c X */
int showcpos(int, int);
int getcolpos(struct mgwin *);
int twiddle(int, int);
diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c
index db04cea2633..34d9b29bff8 100644
--- a/usr.bin/mg/extend.c
+++ b/usr.bin/mg/extend.c
@@ -1,9 +1,9 @@
-/* $OpenBSD: extend.c,v 1.64 2016/09/01 21:06:09 lum Exp $ */
+/* $OpenBSD: extend.c,v 1.65 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
/*
- * Extended (M-X) commands, rebinding, and startup file processing.
+ * Extended (M-x) commands, rebinding, and startup file processing.
*/
#include <sys/queue.h>
diff --git a/usr.bin/mg/key.h b/usr.bin/mg/key.h
index 3b2a7cf65c6..234d6e82310 100644
--- a/usr.bin/mg/key.h
+++ b/usr.bin/mg/key.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.h,v 1.5 2005/06/14 18:14:40 kjell Exp $ */
+/* $OpenBSD: key.h,v 1.6 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
@@ -6,7 +6,7 @@
#define MAXKEY 8 /* maximum number of prefix chars */
-struct key { /* the chacter sequence in a key */
+struct key { /* the character sequence in a key */
int k_count; /* number of chars */
KCHAR k_chars[MAXKEY]; /* chars */
};
diff --git a/usr.bin/mg/log.c b/usr.bin/mg/log.c
index 3ecbb8c4aaa..3e8e8e4d054 100644
--- a/usr.bin/mg/log.c
+++ b/usr.bin/mg/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.7 2019/06/22 13:09:53 lum Exp $ */
+/* $OpenBSD: log.c,v 1.8 2019/06/22 15:38:15 lum Exp $ */
/*
* This file is in the public domain.
@@ -14,7 +14,7 @@
*
* Note this file is not compiled into mg by default, you will need to
* amend the 'Makefile' for that to happen. Because of this, the code
- * is subjet to bit-rot. However, I know myself and others have
+ * is subject to bit-rot. However, I know myself and others have
* written similar functionally often enough, that recording the below
* in a code repository could aid the developement efforts of mg, even
* if it requires a bit of effort to get working. The current code is
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index cbf5da60bb5..634fceb9742 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.86 2019/06/10 06:52:44 lum Exp $ */
+/* $OpenBSD: main.c,v 1.87 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
@@ -249,7 +249,7 @@ edinit(struct buffer *bp)
/*
* Quit command. If an argument, always quit. Otherwise confirm if a buffer
- * has been changed and not written out. Normally bound to "C-X C-C".
+ * has been changed and not written out. Normally bound to "C-x C-c".
*/
/* ARGSUSED */
int
diff --git a/usr.bin/mg/util.c b/usr.bin/mg/util.c
index 26d5b5d5a30..9e3cdf000bc 100644
--- a/usr.bin/mg/util.c
+++ b/usr.bin/mg/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.41 2019/06/07 07:54:05 lum Exp $ */
+/* $OpenBSD: util.c,v 1.42 2019/06/22 15:38:15 lum Exp $ */
/* This file is in the public domain. */
@@ -177,7 +177,7 @@ twiddle(int f, int n)
* Open up some blank space. The basic plan is to insert a bunch of
* newlines, and then back up over them. Everything is done by the
* subcommand processors. They even handle the looping. Normally this
- * is bound to "C-O".
+ * is bound to "C-o".
*/
/* ARGSUSED */
int
@@ -228,7 +228,7 @@ enewline(int f, int n)
* sitting on a blank line. If dot is sitting on a blank line, this command
* deletes all the blank lines above and below the current line. If it is
* sitting on a non blank line then it deletes all of the blank lines after
- * the line. Normally this command is bound to "C-X C-O". Any argument is
+ * the line. Normally this command is bound to "C-x C-o". Any argument is
* ignored.
*/
/* ARGSUSED */
@@ -349,7 +349,7 @@ deltrailwhite(int f, int n)
* simple. Figure out the indentation of the current line. Insert a newline
* by calling the standard routine. Insert the indentation by inserting the
* right number of tabs and spaces. Return TRUE if all ok. Return FALSE if
- * one of the subcommands failed. Normally bound to "C-M".
+ * one of the subcommands failed. Normally bound to "C-m".
*/
/* ARGSUSED */
int
@@ -426,7 +426,7 @@ indent(int f, int n)
* Delete forward. This is real easy, because the basic delete routine does
* all of the work. Watches for negative arguments, and does the right thing.
* If any argument is present, it kills rather than deletes, to prevent loss
- * of text if typed with a big argument. Normally bound to "C-D".
+ * of text if typed with a big argument. Normally bound to "C-d".
*/
/* ARGSUSED */
int