mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
Keep "-c" (top_scroll) through viewing help.
PR: bin/5996 Submitted by: Max Euston <meuston@jmrodgers.com>
This commit is contained in:
parent
d8bb36bb8a
commit
b3841c3bd9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37859
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user