diff options
| author | Tim Vanderhoek <hoek@FreeBSD.org> | 1998-07-25 05:28:32 +0000 |
|---|---|---|
| committer | Tim Vanderhoek <hoek@FreeBSD.org> | 1998-07-25 05:28:32 +0000 |
| commit | b3841c3bd90164a9af56bde2df91cd058f860fa6 (patch) | |
| tree | 6ecbc22856bfcc13e5402346264202340a663243 | |
| parent | d8bb36bb8a26df8476ee190e137602cb4cce6f5e (diff) | |
Notes
| -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 5fdf595fed44..6e39c99049bf 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); } |
