diff --git a/misc/ext.d/text.sh.in b/misc/ext.d/text.sh.in
index 99c8bee..858a9cb 100644
a
|
b
|
do_view_action() { |
45 | 45 | cat "${MC_EXT_FILENAME}" |
46 | 46 | ;; |
47 | 47 | *) |
48 | | { zsoelim "${MC_EXT_FILENAME}" 2>/dev/null || cat "${MC_EXT_FILENAME}"; } | nroff @MAN_FLAGS@ @MANDOC@ |
| 48 | MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}" |
49 | 49 | ;; |
50 | 50 | esac |
51 | 51 | ;; |
… |
… |
do_view_action() { |
64 | 64 | ${unpacker} "${MC_EXT_FILENAME}" |
65 | 65 | ;; |
66 | 66 | *) |
67 | | ${unpacker} "${MC_EXT_FILENAME}" | nroff @MAN_FLAGS@ @MANDOC@ |
| 67 | # "man" takes care of uncompressing. |
| 68 | # This way the stdin is left intact so the correct width is used. |
| 69 | MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat -l "${MC_EXT_FILENAME}" |
68 | 70 | ;; |
69 | 71 | esac |
70 | 72 | ;; |