run-command: call run_command_v_opt_cd_env() instead of duplicating it
[gitweb.git] / pager.c
diff --git a/pager.c b/pager.c
index 53670a63a7ae4dc3a9199671fe899c31251a916c..d0e4bc822c0e3d0f4fe93685b485cbc83c05ee46 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -18,7 +18,7 @@ struct pager_config {
  */
 
 static const char *pager_argv[] = { NULL, NULL };
-static struct child_process pager_process;
+static struct child_process pager_process = CHILD_PROCESS_INIT;
 
 static void wait_for_pager(void)
 {
@@ -85,7 +85,7 @@ void setup_pager(void)
                int i = 0;
 
                if (!getenv("LESS"))
-                       env[i++] = "LESS=FRSX";
+                       env[i++] = "LESS=FRX";
                if (!getenv("LV"))
                        env[i++] = "LV=-c";
                env[i] = NULL;