Use double dashes for contains in fossil completions.

This fixes the issue with strange behaviour of fish shell when first
option of a command is an option.
This commit is contained in:
Konrad Borowski 2014-09-21 14:31:44 +02:00
parent a069aec11d
commit 166a2f91bd

View file

@ -8,7 +8,7 @@ end
function __fish_fossil_command function __fish_fossil_command
set -l cmd (commandline -poc) set -l cmd (commandline -poc)
test (count $cmd) -gt 1 test (count $cmd) -gt 1
and contains $cmd[2] $argv and contains -- $cmd[2] $argv
end end
function __fish_fossil_subcommand function __fish_fossil_subcommand