[Bash-completion-commits] [bash-completion] 02/03: slapt-src: split options from their arguments
Igor Murzov
garik-guest at moszumanska.debian.org
Wed Jun 4 22:11:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
garik-guest pushed a commit to branch master
in repository bash-completion.
commit 3a65be4a18f67d1b5101ce1d03398728aebe0668
Author: Igor Murzov <e-mail at date.by>
Date: Thu Jun 5 00:49:17 2014 +0400
slapt-src: split options from their arguments
---
completions/slapt-src | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/completions/slapt-src b/completions/slapt-src
index 9225804..9b6f501 100644
--- a/completions/slapt-src
+++ b/completions/slapt-src
@@ -2,8 +2,8 @@
_slapt_src()
{
- local cur prev words cword
- _init_completion -n : || return
+ local cur prev words cword split
+ _init_completion -s -n : || return
case "$prev" in
--config|-c)
@@ -16,6 +16,8 @@ _slapt_src()
;;
esac
+ $split && return
+
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list