File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -141,3 +141,15 @@ function foo_complete_function() {
141141
142142complete -F foo_complete_function foo-with-function
143143check_completion ' foo-with-function pre-word word' " -c -D efgh"
144+
145+ function foo_complete_function_with_options() {
146+ EXPECTED_COMPLETE_PROGRAM=foo-with-function-and-options
147+ EXPECTED_COMPLETE_WORD=" 'word'"
148+ EXPECTED_COMPLETE_PRE_WORD=" 'pre-word'"
149+ TEST_COMPLETE_REPLY=(-c -D efgh)
150+ compopt -o default +o default +o bar -o nosort -o nospace +o nospace -o nospace
151+ test_complete_function " $@ "
152+ }
153+
154+ complete -F foo_complete_function_with_options foo-with-function-and-options
155+ check_completion ' foo-with-function-and-options pre-word word' " -c -D efgh" " nosort nospace"
You can’t perform that action at this time.
0 commit comments