File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ _filedir()
797
797
# this to be useful.
798
798
# Returns 0 if current option was split, 1 otherwise.
799
799
#
800
- _split_longopt ()
800
+ _comp__split_longopt ()
801
801
{
802
802
if [[ $cur == --?* = * ]]; then
803
803
# Cut also backslash before '=' in case it ended up there
@@ -977,7 +977,7 @@ _comp_variable_assignments()
977
977
# -e XSPEC Passed to _filedir as first arg for stderr redirections
978
978
# -o XSPEC Passed to _filedir as first arg for other output redirections
979
979
# -i XSPEC Passed to _filedir as first arg for stdin redirections
980
- # -s Split long options with _split_longopt , implies -n =
980
+ # -s Split long options with _comp__split_longopt , implies -n =
981
981
# @param $1...$3 args Original arguments specified to the completion function.
982
982
# The first argument $1 is command name. The second
983
983
# argument $2 is the string before the cursor in the
@@ -1066,7 +1066,7 @@ _comp_initialize()
1066
1066
(( cword <= 0 )) && return 1
1067
1067
prev=${words[cword - 1]}
1068
1068
1069
- [[ $opt_split ]] && _split_longopt && was_split=" set"
1069
+ [[ $opt_split ]] && _comp__split_longopt && was_split=" set"
1070
1070
1071
1071
return 0
1072
1072
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ _comp_deprecate_func __reassemble_comp_words_by_ref _comp__reassemble_words
13
13
_comp_deprecate_func __get_cword_at_cursor_by_ref _comp__get_cword_at_cursor
14
14
_comp_deprecate_func _get_comp_words_by_ref _comp_get_words
15
15
_comp_deprecate_func _longopt _comp_longopt
16
+ _comp_deprecate_func _split_longopt _comp__split_longopt
16
17
17
18
# Backwards compatibility for compat completions that use have().
18
19
# @deprecated should no longer be used; generally not needed with dynamically
@@ -189,7 +190,7 @@ _realcommand()
189
190
# -e XSPEC Passed to _filedir as first arg for stderr redirections
190
191
# -o XSPEC Passed to _filedir as first arg for other output redirections
191
192
# -i XSPEC Passed to _filedir as first arg for stdin redirections
192
- # -s Split long options with _split_longopt , implies -n =
193
+ # -s Split long options with _comp__split_longopt , implies -n =
193
194
# @var[out] cur Reconstructed current word
194
195
# @var[out] prev Reconstructed previous word
195
196
# @var[out] words Reconstructed words
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ _comp_cmd_xm()
15
15
local cur prev words cword comp_args
16
16
_comp_initialize -- " $@ " || return
17
17
18
- # TODO: _split_longopt
18
+ # TODO: split longopt
19
19
20
20
local args command commands options
21
21
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ available in `COMPREPLY`.
81
81
## ` [[ $was_split ]] && return `
82
82
83
83
Should be used in completions using the ` -s ` flag of ` _comp_initialize ` ,
84
- or other similar cases where ` _split_longopt ` has been invoked, after
84
+ or other similar cases where ` _comp__split_longopt ` has been invoked, after
85
85
` $prev ` has been managed but before ` $cur ` is considered. If ` $cur ` of the
86
86
form ` --foo=bar ` was split into ` prev=--foo ` and ` cur=bar ` , and the ` $prev `
87
87
block did not process the option argument completion, it makes sense to return
You can’t perform that action at this time.
0 commit comments