Tweaked __fish_print_help to not spew errors

This commit is contained in:
ridiculousfish 2012-07-06 16:31:06 -07:00
parent ee8fd21d28
commit 60ef7903e2

View File

@ -23,7 +23,7 @@ function __fish_print_help --description "Print help message for the specified f
set -l sed_cmd -e $cmd1 -e $cmd2 -e $cmd3
# Render help output, save output into the variable 'help'
set -l help (nroff -man "$__fish_datadir/man/man1/$item.1")
set -l help (nroff -man "$__fish_datadir/man/man1/$item.1" ^ /dev/null )
set -l lines (count $help)
# Print an empty line first