Fix /help LESS setting for updated manual
The new reference to the COMMANDS section at the beginning of the manual would get matched instead.master
parent
ab744d74e1
commit
d3ab2ff2e7
|
@ -468,7 +468,7 @@ static void commandHelp(uint id, char *params) {
|
||||||
if (pid) return;
|
if (pid) return;
|
||||||
|
|
||||||
char buf[256];
|
char buf[256];
|
||||||
snprintf(buf, sizeof(buf), "%spCOMMANDS$", (getenv("LESS") ?: ""));
|
snprintf(buf, sizeof(buf), "%sp^COMMANDS$", (getenv("LESS") ?: ""));
|
||||||
setenv("LESS", buf, 1);
|
setenv("LESS", buf, 1);
|
||||||
execlp("man", "man", "1", "catgirl", NULL);
|
execlp("man", "man", "1", "catgirl", NULL);
|
||||||
dup2(utilPipe[1], STDERR_FILENO);
|
dup2(utilPipe[1], STDERR_FILENO);
|
||||||
|
|
Loading…
Reference in New Issue