File tree Expand file tree Collapse file tree 10 files changed +20
-10
lines changed
Expand file tree Collapse file tree 10 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 66
77< %= function_name %> () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112% if ENV[' COMPLETELY_DEBUG' ]
1213 if [[ -n " $COMPLETELY_DEBUG " ]]; then
Original file line number Diff line number Diff line change 66
77_mygit_completions () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 case " $compline " in
1213 ' status' * )
Original file line number Diff line number Diff line change 66
77_mycomps () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 case " $compline " in
1213 ' status' * )
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ give_comps() {
77 echo $' '
88 echo $' _mygit_completions() {'
99 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10- echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
10+ echo $' local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}")'
11+ echo $' local compline="${compwords[*]}"'
1112 echo $' '
1213 echo $' case "$compline" in'
1314 echo $' \' status\' *)'
Original file line number Diff line number Diff line change 1414
1515_mygit_completions () {
1616 local cur=${COMP_WORDS[COMP_CWORD]}
17- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
17+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
18+ local compline=" ${compwords[*]} "
1819
1920 case " $compline " in
2021 ' status' * )
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ send_completions() {
77 echo $' '
88 echo $' _completely_completions() {'
99 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10- echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
10+ echo $' local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}")'
11+ echo $' local compline="${compwords[*]}"'
1112 echo $' '
1213 echo $' case "$compline" in'
1314 echo $' \' generate\' *)'
Original file line number Diff line number Diff line change 66
77_completely_completions () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 case " $compline " in
1213 ' generate' * )
Original file line number Diff line number Diff line change 66
77_completely_completions () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 case " $compline " in
1213 ' generate' * )
Original file line number Diff line number Diff line change 66
77_completely_completions () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 if [[ -n " $COMPLETELY_DEBUG " ]]; then
1213 echo " compline: '$compline '" > ' completely-debug.txt'
Original file line number Diff line number Diff line change 66
77_cli_completions () {
88 local cur=${COMP_WORDS[COMP_CWORD]}
9- local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
9+ local compwords=(" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} " )
10+ local compline=" ${compwords[*]} "
1011
1112 case " $compline " in
1213 ' command childcommand' * )
You can’t perform that action at this time.
0 commit comments