bash-completion: Add some patches.

This commit is contained in:
Alexpux
2014-04-11 13:46:04 +04:00
parent ee864a8754
commit 4ed466a051
4 changed files with 68 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/bash_completion b/bash_completion
index 66d36b1..ce469d0 100644
--- a/bash_completion
+++ b/bash_completion
@@ -707,7 +707,7 @@ _init_completion()
fi
done
- [[ $cword -eq 0 ]] && return 1
+ [[ $cword -le 0 ]] && return 1
prev=${words[cword-1]}
[[ ${split-} ]] && _split_longopt && split=true