Skip to content

Commit

Permalink
Merge pull request pallets#773 from stopthatcow/feature/allow_spaces_…
Browse files Browse the repository at this point in the history
…in_completions

Allow spaces in bash completion results
  • Loading branch information
untitaker authored May 5, 2017
2 parents b224988 + a1d022f commit 6f4eb1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Version 7.0
-----------

(upcoming release with new features, release date to be decided)
- Added support for bash completions containing spaces. See #773.
- Added support for dynamic bash completion from a user-supplied callback.
See #755.
- Added support for bash completion of type=click.Choice for Options and
Expand Down
1 change: 1 addition & 0 deletions click/_bashcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

COMPLETION_SCRIPT = '''
%(complete_func)s() {
local IFS=$'\n'
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \\
COMP_CWORD=$COMP_CWORD \\
%(autocomplete_var)s=complete $1 ) )
Expand Down

0 comments on commit 6f4eb1e

Please sign in to comment.