45130: _multi_parts: Always pass -f to compadd if given by caller

This commit is contained in:
dana 2019-12-26 20:26:58 -06:00
parent ed21a7b700
commit 02a33dd071
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2019-12-26 dana <dana@dana.is>
* 45130: Completion/Base/Utility/_multi_parts: Always pass -f
to compadd if given by caller
* unposted: Src/utils.c: Fix macro guard missed in previous
commit

View file

@ -15,7 +15,7 @@ typeset -U tmp1 matches
zparseopts -D -a sopts \
'J+:=group' 'V+:=group' 'x+:=expl' 'X+:=expl' 'P:=opts' 'F:=opts' \
S: r: R: q 1 2 o+: n f 'M+:=matcher' 'i=imm'
S: r: R: q 1 2 o+: n 'f=opts' 'M+:=matcher' 'i=imm'
sopts=( "$sopts[@]" "$opts[@]" )
if (( $#matcher )); then