diff options
author | 2006-02-08 20:22:36 +1000 | |
---|---|---|
committer | 2006-02-08 20:22:36 +1000 | |
commit | 824f4ee566f0454515810c4df5f602e28fbb7c60 (patch) | |
tree | 7955b494bd579c8ad15c4b2eef151d5c603c995e /init/functions | |
parent | 1cb9b6574419a51de446a36b26c78a0353184e8e (diff) |
Make the __fish_describe_command function strip spaces and newlines
darcs-hash:20060208102236-ac50b-6df5b077a09eda9180a1405305e12fd15967eb31.gz
Diffstat (limited to 'init/functions')
-rw-r--r-- | init/functions/__fish_describe_command.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/functions/__fish_describe_command.fish b/init/functions/__fish_describe_command.fish index 27d478b7..50d3870a 100644 --- a/init/functions/__fish_describe_command.fish +++ b/init/functions/__fish_describe_command.fish @@ -7,7 +7,7 @@ function __fish_describe_command -d "Command used to find descriptions for comma split($1, names, ", "); for (name in names) if (names[name] ~ /^'"$argv"'.* *\([18]\)/) { - sub("\\([18]\\)", "", names[name]); + sub("( |\t)*\\([18]\\)", "", names[name]); print names[name] "\t" $2; } }' |