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
C. McEnroe 2021-02-08 18:49:39 -05:00
parent ab744d74e1
commit d3ab2ff2e7
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ static void commandHelp(uint id, char *params) {
if (pid) return;
char buf[256];
snprintf(buf, sizeof(buf), "%spCOMMANDS$", (getenv("LESS") ?: ""));
snprintf(buf, sizeof(buf), "%sp^COMMANDS$", (getenv("LESS") ?: ""));
setenv("LESS", buf, 1);
execlp("man", "man", "1", "catgirl", NULL);
dup2(utilPipe[1], STDERR_FILENO);