chiark / gitweb /
pager: add K to less environment
[elogind.git] / src / shared / pager.c
index 488a12c763839f156471d1b56606fae5f06b8188..5165d2b1c854f101285e8e58fef06d297a66f988 100644 (file)
@@ -85,7 +85,7 @@ int pager_open(void) {
                 dup2(fd[0], STDIN_FILENO);
                 close_pipe(fd);
 
                 dup2(fd[0], STDIN_FILENO);
                 close_pipe(fd);
 
-                setenv("LESS", "FRSX", 0);
+                setenv("LESS", "FRSXK", 0);
 
                 /* Make sure the pager goes away when the parent dies */
                 if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)
 
                 /* Make sure the pager goes away when the parent dies */
                 if (prctl(PR_SET_PDEATHSIG, SIGTERM) < 0)