2
0
mirror of https://codeberg.org/kiss-community/repo synced 2025-01-11 21:30:09 -07:00
repo/core/mandoc/patches/pager.patch

28 lines
583 B
Diff
Raw Normal View History

2019-08-13 04:49:28 -06:00
--- 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 = "less";
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;