mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
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.
This commit is contained in:
parent
900a8a1408
commit
cad1dc5293
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue