aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/help.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-11-07 23:12:11 +1000
committerGravatar axel <axel@liljencrantz.se>2006-11-07 23:12:11 +1000
commitdc90e460fea9b7d0012e3fa5f9f9f46ef1fc00ad (patch)
tree6a1c0d0702de0094557b9bd6a81e4dbeca5e52d8 /share/functions/help.fish
parentd20c14b4bb42b67733df3ce35a6e12a79d4a4bae (diff)
Fix a bug in the help function causing help to fail when trying to open help for a builtin command. Thanks to Reuben Thomas for the report.
darcs-hash:20061107131211-ac50b-9727a813d940b34923b23b073c80a7b42c023486.gz
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r--share/functions/help.fish6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish
index 3919a121..c93270ec 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -75,17 +75,15 @@ function help -d (N_ "Show help for the fish shell")
case ""
set fish_help_page index.html
case "."
- set fish_help_page "builtins.html\#source"
+ set fish_help_page "commands.html\#source"
case difference
set fish_help_page difference.html
case globbing
set fish_help_page "index.html\#expand"
- case (builtin -n)
- set fish_help_page "builtins.html\#$fish_help_item"
# This command substitution should locate all commands with
# documentation. It's a bit of a hack, since it relies on the
- # Doxygen markup format to never change...
+ # Doxygen markup format to never change.
case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
set fish_help_page "commands.html\#$fish_help_item"