diff options
author | hoek <hoek@FreeBSD.org> | 1998-07-25 05:28:32 +0000 |
---|---|---|
committer | hoek <hoek@FreeBSD.org> | 1998-07-25 05:28:32 +0000 |
commit | f70bf0b5e77516cb81a79b2fefcb3ce52a0fadfc (patch) | |
tree | 4a5afef60fe3f2e2c05bbf4ced3a8481efef149c /usr.bin/more | |
parent | a3b54b46a33da3eaa79f22ae228ee233e3375670 (diff) | |
download | FreeBSD-src-f70bf0b5e77516cb81a79b2fefcb3ce52a0fadfc.zip FreeBSD-src-f70bf0b5e77516cb81a79b2fefcb3ce52a0fadfc.tar.gz |
Keep "-c" (top_scroll) through viewing help.
PR: bin/5996
Submitted by: Max Euston <meuston@jmrodgers.com>
Diffstat (limited to 'usr.bin/more')
-rw-r--r-- | usr.bin/more/help.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/more/help.c b/usr.bin/more/help.c index 5fdf595..6e39c99 100644 --- a/usr.bin/more/help.c +++ b/usr.bin/more/help.c @@ -38,12 +38,17 @@ static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 6/6/93"; #include <sys/param.h> #include <less.h> + #include "pathnames.h" +extern int top_scroll; + help() { char cmd[MAXPATHLEN + 20]; - (void)snprintf(cmd, sizeof(cmd), "-more -e %s", _PATH_HELPFILE); + snprintf(cmd, sizeof(cmd), "-more -e%c %s", + top_scroll ? 'c' : ' ', + _PATH_HELPFILE); lsystem(cmd); } |