diff options
author | 2013-06-01 10:23:40 +0000 | |
---|---|---|
committer | 2013-06-01 10:23:40 +0000 | |
commit | dccf97f1cb8f0bb6d41a9f2b1e725266dfb90a62 (patch) | |
tree | e4470bc057f988bc5d335e42865686cf43b28b37 | |
parent | The k*() functions were moved to yank.c in 2005. Update the comment to (diff) | |
download | wireguard-openbsd-dccf97f1cb8f0bb6d41a9f2b1e725266dfb90a62.tar.xz wireguard-openbsd-dccf97f1cb8f0bb6d41a9f2b1e725266dfb90a62.zip |
Update the forw/backpara comments to reflect recent changes.
-rw-r--r-- | usr.bin/mg/paragraph.c | 15 |
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 |