mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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:
parent
a069aec11d
commit
166a2f91bd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue