iglunix/pkgs/mandoc/term-size.patch

12 lines
380 B
Diff
Raw Normal View History

2021-06-01 09:36:00 +00:00
--- a/main.c
+++ b/main.c
@@ -321,7 +321,7 @@
(conf.output.width == 0 || conf.output.indent == 0) &&
ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1 &&
ws.ws_col > 1) {
- if (conf.output.width == 0 && ws.ws_col < 79)
+ if (conf.output.width == 0)
conf.output.width = ws.ws_col - 1;
if (conf.output.indent == 0 && ws.ws_col < 66)
conf.output.indent = 3;