Fix /help LESS setting for updated manual
The new reference to the COMMANDS section at the beginning of the manual would get matched instead.weechat-hashes
parent
ab744d74e1
commit
d3ab2ff2e7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue