Fix error in yum completions

Pass -- to contains.

Closes #1811.
This commit is contained in:
David Adam 2014-11-17 18:16:11 +08:00
parent 7555772432
commit 2ddd839f52

View file

@ -7,7 +7,7 @@
# Test if completing using package names is appropriate
function __fish_yum_package_ok
for i in (commandline -poc)
if contains $i update upgrade remove erase install reinstall
if contains -- $i update upgrade remove erase install reinstall
return 0
end
end