diff options
author | 2015-03-10 22:16:13 +0100 | |
---|---|---|
committer | 2015-04-04 12:03:58 -0700 | |
commit | cad1dc529319c5c1bd47fb002723c97a6a828509 (patch) | |
tree | 312a084e4c8921fb86ccda37c965f6b2857be8e9 /share/functions/__fish_print_help.fish | |
parent | 900a8a140896fbac4c0b6215560ef620322634d2 (diff) |
Fix #1978:"ul: unknown escape sequence" when asking for help
It seems that `ul` can't handle the escape sequences for bold text that `nroff` generates on my system. Fixed by either removing `| ul`, or adding `-c` to the `nroff` command.
Needs testing for old (OSX?) versions of nroff.
Diffstat (limited to 'share/functions/__fish_print_help.fish')
-rw-r--r-- | share/functions/__fish_print_help.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish index e21de74e..02bc499a 100644 --- a/share/functions/__fish_print_help.fish +++ b/share/functions/__fish_print_help.fish @@ -39,7 +39,7 @@ function __fish_print_help --description "Print help message for the specified f set cols (expr $cols - 4) # leave a bit of space on the right set rLL -rLL=$cols[1]n end - set help (nroff -man -t $rLL "$__fish_datadir/man/man1/$item.1" ^/dev/null) + set help (nroff -man -c -t $rLL "$__fish_datadir/man/man1/$item.1" ^/dev/null) # The original implementation trimmed off the top 5 lines and bottom 3 lines # from the nroff output. Perhaps that's reliable, but the magic numbers make |