Fix __reassemble_comp_words_by_ref for $COMP_CWORD == ${#COMP_WORDS[@]}
This commit is contained in:
parent
30f93357c8
commit
dc150937d1
@ -284,6 +284,7 @@ __reassemble_comp_words_by_ref()
|
|||||||
# Indicate new cword
|
# Indicate new cword
|
||||||
[[ $i == $COMP_CWORD ]] && eval $3=$j
|
[[ $i == $COMP_CWORD ]] && eval $3=$j
|
||||||
done
|
done
|
||||||
|
[[ $i == $COMP_CWORD ]] && eval $3=$j
|
||||||
else
|
else
|
||||||
# No, list of word completions separators hasn't changed;
|
# No, list of word completions separators hasn't changed;
|
||||||
eval $2=\( \"\${COMP_WORDS[@]}\" \)
|
eval $2=\( \"\${COMP_WORDS[@]}\" \)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user