File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -665,12 +665,14 @@ _comp_compgen()
665
665
# caller _comp_compgen, the words are appended to the existing elements of the
666
666
# array instead of replacing the existing elements. This function ignores
667
667
# ${cur-} or the prefix specified by `-v CUR`.
668
+ # @return 0 if at least one completion is generated, or 1 otherwise.
668
669
# @since 2.12
669
670
_comp_compgen_set ()
670
671
{
671
672
local _append=${_comp_compgen__append-}
672
673
local _var=${_comp_compgen__var-COMPREPLY}
673
674
eval -- " $_var ${_append: ++} =(\"\$ @\" )"
675
+ (( $# ))
674
676
}
675
677
676
678
# Simply split the text and generate completions. This function should be used
@@ -1004,6 +1006,7 @@ _comp_quote_compgen()
1004
1006
# @param $1 If `-d', complete only on directories. Otherwise filter/pick only
1005
1007
# completions with `.$1' and the uppercase version of it as file
1006
1008
# extension.
1009
+ # @return 0 if at least one completion is generated, or 1 otherwise.
1007
1010
#
1008
1011
# @since 2.12
1009
1012
_comp_compgen_filedir ()
You can’t perform that action at this time.
0 commit comments