Skip to content

Commit 35fbf57

Browse files
committed
fix(_comp_xfunc): allow calling non-xfunc functions for compatibility
1 parent ccf1388 commit 35fbf57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ _completion_loader()
24302430
_comp_xfunc()
24312431
{
24322432
local xfunc_name=$2
2433-
[[ $xfunc_name == _comp_xfunc_* ]] ||
2433+
[[ $xfunc_name == _* ]] ||
24342434
xfunc_name=_comp_xfunc_${1//[^a-zA-Z0-9_]/_}_$xfunc_name
24352435
declare -F "$xfunc_name" &>/dev/null || __load_completion "$1"
24362436
"$xfunc_name" "${@:3}"

0 commit comments

Comments
 (0)