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()
827
827
fi
828
828
done
829
829
done
830
- COMPREPLY=($( compgen -W ' "${COMPREPLY[@]}"' -- " ${cur##* " $delimiter " } " ) )
830
+ (( ${# COMPREPLY[@]} )) &&
831
+ COMPREPLY=($( compgen -W ' "${COMPREPLY[@]}"' -- " ${cur##* " $delimiter " } " ) )
831
832
fi
832
833
else
833
834
COMPREPLY=($( compgen " $@ " -- " ${cur##* " $delimiter " } " ) )
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ _comp_xfunc_cvs_roots()
41
41
[[ -v CVSROOT ]] && cvsroots=(" $CVSROOT " )
42
42
[[ -r ~ /.cvspass ]] && cvsroots+=($( awk ' { print $2 }' ~ /.cvspass) )
43
43
[[ -r CVS/Root ]] && mapfile -tO ${# cvsroots[@]} cvsroots < CVS/Root
44
- COMPREPLY=($( compgen -W ' "${cvsroots[@]}"' -- " $cur " ) )
44
+ (( ${# cvsroots[@]} )) &&
45
+ COMPREPLY=($( compgen -W ' "${cvsroots[@]}"' -- " $cur " ) )
45
46
__ltrim_colon_completions " $cur "
46
47
}
47
48
You can’t perform that action at this time.
0 commit comments