aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/more
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>1998-07-25 05:28:32 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>1998-07-25 05:28:32 +0000
commitb3841c3bd90164a9af56bde2df91cd058f860fa6 (patch)
tree6ecbc22856bfcc13e5402346264202340a663243 /usr.bin/more
parentd8bb36bb8a26df8476ee190e137602cb4cce6f5e (diff)
Notes
Diffstat (limited to 'usr.bin/more')
-rw-r--r--usr.bin/more/help.c7
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);
}