File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ _configure()
20
20
;;
21
21
esac
22
22
23
- $split && return
24
-
25
- [[ $cur != -* ]] && return
23
+ if $split || [[ $cur != -* ]]; then
24
+ _filedir
25
+ return
26
+ fi
26
27
27
28
# if $COMP_CONFIGURE_HINTS is not null, then completions of the form
28
29
# --option=SETTING will include 'SETTING' as a contextual hint
Original file line number Diff line number Diff line change @@ -15,3 +15,11 @@ def test_1(self, completion):
15
15
@pytest .mark .complete ("configure --prefix " )
16
16
def test_2 (self , completion ):
17
17
assert completion
18
+
19
+ @pytest .mark .complete ("configure --unknown-option-with-split=" )
20
+ def test_unknown_split_filedir_fallback (self , completion ):
21
+ assert "shared/" in completion
22
+
23
+ @pytest .mark .complete ("configure --unknown-option " )
24
+ def test_unknown_filedir_fallback (self , completion ):
25
+ assert "shared/" in completion
You can’t perform that action at this time.
0 commit comments