aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_subcommand.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-13 09:14:09 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-13 09:14:09 +1000
commit1612ec50fbac4344f365fb31a15240834c01eaeb (patch)
tree543f97e480ae182d607fdc2e0d0bc0c01934e646 /share/functions/__fish_complete_subcommand.fish
parent3bb0163598c845958857fa5f1083e0e8a45b7da0 (diff)
Fix bug in __fish_complete_subcommand, reported by Xavier Douville
darcs-hash:20060912231409-ac50b-c573d798d9d1abc197fcf50f3b52df2e44e1f70e.gz
Diffstat (limited to 'share/functions/__fish_complete_subcommand.fish')
-rw-r--r--share/functions/__fish_complete_subcommand.fish5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/functions/__fish_complete_subcommand.fish b/share/functions/__fish_complete_subcommand.fish
index 60ecc35a..4af0e1c9 100644
--- a/share/functions/__fish_complete_subcommand.fish
+++ b/share/functions/__fish_complete_subcommand.fish
@@ -1,4 +1,5 @@
function __fish_complete_subcommand -d "Complete subcommand"
+
set -l res ""
set -l had_cmd 0
set -l cmd (commandline -cop) (commandline -ct)
@@ -29,8 +30,8 @@ function __fish_complete_subcommand -d "Complete subcommand"
end
end
end
-
- printf "%s\n" (commandline -ct)(complete -C $res)
+
+ printf "%s\n" (commandline -ct)(complete -C$res)
end