forked from mirror/cobra
Fixed completion of dash parameters arguments (#415)
This commit is contained in:
parent
7aeaa2cce6
commit
5deb57bbca
|
@ -88,8 +88,8 @@ __handle_reply()
|
|||
local index flag
|
||||
flag="${cur%%=*}"
|
||||
__index_of_word "${flag}" "${flags_with_completion[@]}"
|
||||
if [[ ${index} -ge 0 ]]; then
|
||||
COMPREPLY=()
|
||||
if [[ ${index} -ge 0 ]]; then
|
||||
PREFIX=""
|
||||
cur="${cur#*=}"
|
||||
${flags_completion[${index}]}
|
||||
|
|
Loading…
Reference in New Issue