summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2013-06-01 10:23:41 +0000
committerlum <lum@cvs.openbsd.org>2013-06-01 10:23:41 +0000
commitad16c4807b12688fb8c0fa15e3d527a88a4f1c98 (patch)
tree3c4606db27691721edcf8e2a6d248cd360e0bc7b /usr.bin/mg
parent31b7972c49284edd1307dc859e89db05ad866160 (diff)
Update the forw/backpara comments to reflect recent changes.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/paragraph.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.bin/mg/paragraph.c b/usr.bin/mg/paragraph.c
index 53987241ee7..6b94ceb4e81 100644
--- a/usr.bin/mg/paragraph.c
+++ b/usr.bin/mg/paragraph.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paragraph.c,v 1.26 2013/06/01 09:50:47 lum Exp $ */
+/* $OpenBSD: paragraph.c,v 1.27 2013/06/01 10:23:40 lum Exp $ */
/* This file is in the public domain. */
@@ -16,9 +16,11 @@ static int fillcol = 70;
#define MAXWORD 256
/*
- * Move to start of paragraph. Go back to the beginning of the current
- * paragraph here we look for a <NL><NL> or <NL><TAB> or <NL><SPACE>
- * combination to delimit the beginning of a paragraph.
+ * Move to start of paragraph.
+ * Move backwards by line, checking from the 1st character forwards for the
+ * existence a non-space. If a non-space character is found, move to the
+ * preceding line. Keep doing this until a line with only spaces is found or
+ * the start of buffer.
*/
/* ARGSUSED */
int
@@ -54,9 +56,8 @@ gotobop(int f, int n)
}
/*
- * Move to end of paragraph. Go forward to the end of the current paragraph
- * here we look for a <NL><NL> or <NL><TAB> or <NL><SPACE> combination to
- * delimit the beginning of a paragraph.
+ * Move to end of paragraph.
+ * See comments for gotobop(). Same, but moving forwards.
*/
/* ARGSUSED */
int