File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 3
3
# @since 2.12
4
4
_comp_xfunc_iconv_charsets ()
5
5
{
6
- COMPREPLY+=($( compgen -X ... -W ' $("${1:-iconv}" -l | \
7
- command sed -e "s@/*\$@@" -e "s/[,()]//g")' -- " $cur " ) )
6
+ _comp_cmd_iconv__charsets iconv
7
+ }
8
+
9
+ # @deprecated 2.12 use `_comp_xfunc_iconv_charsets` instead
10
+ _iconv_charsets ()
11
+ {
12
+ _comp_cmd_iconv__charsets " ${1:- iconv} "
8
13
}
9
14
10
- _comp_deprecate_func 2.12 _iconv_charsets _comp_xfunc_iconv_charsets
15
+ _comp_cmd_iconv__charsets ()
16
+ {
17
+ COMPREPLY+=($( compgen -X ... -W ' $("$1" -l | \
18
+ command sed -e "s@/*\$@@" -e "s/[,()]//g")' -- " $cur " ) )
19
+ }
11
20
12
21
_comp_cmd_iconv ()
13
22
{
@@ -22,7 +31,7 @@ _comp_cmd_iconv()
22
31
return
23
32
;;
24
33
--from-code | --to-code | -${noargopts} [ft])
25
- _comp_xfunc_iconv_charsets " $1 "
34
+ _comp_cmd_iconv__charsets " $1 "
26
35
return
27
36
;;
28
37
--output | -${noargopts} o)
You can’t perform that action at this time.
0 commit comments