From ad16c4807b12688fb8c0fa15e3d527a88a4f1c98 Mon Sep 17 00:00:00 2001 From: lum Date: Sat, 1 Jun 2013 10:23:41 +0000 Subject: Update the forw/backpara comments to reflect recent changes. --- usr.bin/mg/paragraph.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'usr.bin') 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 or or - * 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 or or combination to - * delimit the beginning of a paragraph. + * Move to end of paragraph. + * See comments for gotobop(). Same, but moving forwards. */ /* ARGSUSED */ int -- cgit v1.2.3