Apply the same fix to help completion too.

This commit is contained in:
Cheer Xiao 2012-12-17 23:01:34 +08:00 committed by ridiculousfish
parent 0479060858
commit f9697c8e36

View file

@ -3,7 +3,7 @@
#
if test -f "$__fish_help_dir/commands.html"
for i in case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
for i in case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h[12]><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
complete -c help -x -a $i --description "Help for the specified command"
end
end