Fixed completion of dash parameters arguments

This commit is contained in:
Tomer Froumin 2017-04-08 17:26:43 +03:00
parent 7aeaa2cce6
commit 2b8ff39c6e

View file

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