diff options
Diffstat (limited to 'main/mdocml/pager.patch')
-rw-r--r-- | main/mdocml/pager.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/mdocml/pager.patch b/main/mdocml/pager.patch new file mode 100644 index 0000000000..b887c8c120 --- /dev/null +++ b/main/mdocml/pager.patch @@ -0,0 +1,27 @@ +--- mdocml-1.13.4/main.c.orig ++++ mdocml-1.13.4/main.c +@@ -1042,7 +1042,7 @@ + if (pager == NULL || *pager == '\0') + pager = getenv("PAGER"); + if (pager == NULL || *pager == '\0') +- pager = "more -s"; ++ pager = "/bin/more -s"; + cp = mandoc_strdup(pager); + + /* +@@ -1063,15 +1063,6 @@ + break; + } + +- /* For less(1), use the tag file. */ +- +- if ((cmdlen = strlen(argv[0])) >= 4) { +- cp = argv[0] + cmdlen - 4; +- if (strcmp(cp, "less") == 0) { +- argv[argc++] = mandoc_strdup("-T"); +- argv[argc++] = tag_files->tfn; +- } +- } + argv[argc++] = tag_files->ofn; + argv[argc] = NULL; + |