about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-08 18:49:39 -0500
committerJune McEnroe <june@causal.agency>2021-02-08 18:49:39 -0500
commitd3ab2ff2e77383fdd990196f407bd8e83196c333 (patch)
treedb5d453bf2c2b882cc242a2d81ad6d0aa142d64f
parentchat.tmux.conf: Add help window for restricted mode, use neww -S (diff)
downloadcatgirl-d3ab2ff2e77383fdd990196f407bd8e83196c333.tar.gz
catgirl-d3ab2ff2e77383fdd990196f407bd8e83196c333.zip
Fix /help LESS setting for updated manual
The new reference to the COMMANDS section at the beginning of the
manual would get matched instead.
Diffstat (limited to '')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index b1b4af4..1154942 100644
--- a/command.c
+++ b/command.c
@@ -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);