Commit 8b33d3ae authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Merge pull request #3272 from lspitzner/patch-2

Respect "--" in bash-completion, fixes #3271
parents f0c712fb c2ca6e40
......@@ -53,8 +53,22 @@ _cabal_subcommands()
done
}
__cabal_has_doubledash ()
{
for w in "${COMP_WORDS[@]}"
do
if [ "--" == "$w" ]; then
return 0
fi
done
return 1
}
_cabal()
{
# no completion past cabal arguments.
__cabal_has_doubledash && return
# get the word currently being completed
local cur
cur=${COMP_WORDS[$COMP_CWORD]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment