File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,8 @@ _comp_delimited()
827827 fi
828828 done
829829 done
830- COMPREPLY=($( compgen -W ' "${COMPREPLY[@]}"' -- " ${cur##* " $delimiter " } " ) )
830+ (( ${# COMPREPLY[@]} )) &&
831+ COMPREPLY=($( compgen -W ' "${COMPREPLY[@]}"' -- " ${cur##* " $delimiter " } " ) )
831832 fi
832833 else
833834 COMPREPLY=($( compgen " $@ " -- " ${cur##* " $delimiter " } " ) )
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ _comp_xfunc_cvs_roots()
4141 [[ -v CVSROOT ]] && cvsroots=(" $CVSROOT " )
4242 [[ -r ~ /.cvspass ]] && cvsroots+=($( awk ' { print $2 }' ~ /.cvspass) )
4343 [[ -r CVS/Root ]] && mapfile -tO ${# cvsroots[@]} cvsroots < CVS/Root
44- COMPREPLY=($( compgen -W ' "${cvsroots[@]}"' -- " $cur " ) )
44+ (( ${# cvsroots[@]} )) &&
45+ COMPREPLY=($( compgen -W ' "${cvsroots[@]}"' -- " $cur " ) )
4546 __ltrim_colon_completions " $cur "
4647}
4748
You can’t perform that action at this time.
0 commit comments