Merge branch 'maint'
authorJunio C Hamano <junkio@cox.net>
Fri, 20 Oct 2006 23:51:05 +0000 (16:51 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 20 Oct 2006 23:51:05 +0000 (16:51 -0700)
* maint:
Fix typo in show-index.c
pager: default to LESS=FRS

pager.c
show-index.c
diff --git a/pager.c b/pager.c
index dcb398da8e703de2999badb976dee7322eff470b..8bd33a15ca50f01b3c5a5e4028dc0b64d5360a92 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -50,7 +50,7 @@ void setup_pager(void)
        close(fd[0]);
        close(fd[1]);
 
-       setenv("LESS", "-RS", 0);
+       setenv("LESS", "FRS", 0);
        run_pager(pager);
        die("unable to execute pager '%s'", pager);
        exit(255);
index c21d660b628a5b6d67b0f56b41fc76a921df340f..a30a2de5d13931c590169cf30bd7004e23f2df1b 100644 (file)
@@ -8,7 +8,7 @@ int main(int argc, char **argv)
        static unsigned int top_index[256];
 
        if (fread(top_index, sizeof(top_index), 1, stdin) != 1)
-               die("unable to read idex");
+               die("unable to read index");
        nr = 0;
        for (i = 0; i < 256; i++) {
                unsigned n = ntohl(top_index[i]);