/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bashcomp.py

Restore completion of registry options immediately after =.

Revision martin.vgagern@gmx.net-20100422090434-p2sjx1c2a52dd0kf broke this
by basing all completions on "compgen -W ...  $cur", where $cur == "=" here,
so the enum options don't match.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                esac
109
109
        elif [[ $cur == = ]] && [[ -n $optEnums ]]; then
110
110
                # complete directly after "--option=", list all enum values
111
 
                fixedWords=$optEnums
 
111
                COMPREPLY=( $optEnums )
 
112
                return 0
112
113
        else
113
114
                fixedWords="$cmdOpts $globalOpts $optEnums $fixedWords"
114
115
        fi