mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08: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
@ -8,7 +8,7 @@ end
|
||||
function __fish_fossil_command
|
||||
set -l cmd (commandline -poc)
|
||||
test (count $cmd) -gt 1
|
||||
and contains $cmd[2] $argv
|
||||
and contains -- $cmd[2] $argv
|
||||
end
|
||||
|
||||
function __fish_fossil_subcommand
|
||||
|
Loading…
x
Reference in New Issue
Block a user