Fixed completion of dash parameters arguments (#415)

This commit is contained in:
tomerf 2017-04-08 17:45:37 +03:00 committed by Eric Paris
parent 7aeaa2cce6
commit 5deb57bbca

View file

@ -88,8 +88,8 @@ __handle_reply()
local index flag local index flag
flag="${cur%%=*}" flag="${cur%%=*}"
__index_of_word "${flag}" "${flags_with_completion[@]}" __index_of_word "${flag}" "${flags_with_completion[@]}"
COMPREPLY=()
if [[ ${index} -ge 0 ]]; then if [[ ${index} -ge 0 ]]; then
COMPREPLY=()
PREFIX="" PREFIX=""
cur="${cur#*=}" cur="${cur#*=}"
${flags_completion[${index}]} ${flags_completion[${index}]}