aboutsummaryrefslogtreecommitdiffstats
path: root/main/mdocml/pager.patch
blob: b887c8c120f272633782e2c29651cec21e1bc6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;