Allow multiple words to be completed at once, eg. for assignees.
authorRobert Lehmann <mail@robertlehmann.de>
Fri, 26 Nov 2010 07:35:13 +0000 (08:35 +0100)
committerRobert Lehmann <mail@robertlehmann.de>
Fri, 26 Nov 2010 07:35:13 +0000 (08:35 +0100)
misc/completion/be.bash

index 834bf25b87e1e091801d91fa0c66b6eb6ff5f015..1d3a9411b2ef2050f0ba52c3f85ed6c6a6e94943 100644 (file)
@@ -32,7 +32,7 @@ _be()
        for i in `seq $COMP_CWORD ${#COMP_WORDS[@]}`; do
            unset COMP_WORDS[$i];
        done
-       COMPREPLY=( $( compgen -W "$(be "${COMP_WORDS[@]}" --complete $cur)" -- $cur ) )
+       COMPREPLY=( $( IFS=$'\n' compgen -W "$(be "${COMP_WORDS[@]}" --complete $cur)" -- $cur ) )
     fi
 }