@@ -208,6 +208,16 @@ another shell bash fish zsh
208208 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
209209 assert_data_eq ! ( actual, expected) ;
210210
211+ // Trigger completion immediately after "--"
212+ let input = "exhaustive -- hint\x1b [D\x1b [D\x1b [D\x1b [D\x1b [D\t \t " ;
213+ let expected = snapbox:: str![ [ r#"
214+ %
215+ --choice --other --file --exe --cmd --host --email
216+ --unknown --path --dir --cmd-name --user --url --help
217+ "# ] ] ;
218+ let actual = runtime. complete ( input, & term) . unwrap ( ) ;
219+ assert_data_eq ! ( actual, expected) ;
220+
211221 {
212222 use std:: fs:: File ;
213223 use std:: path:: Path ;
@@ -449,6 +459,15 @@ fn complete_dynamic_middle_of_word() {
449459 let expected = snapbox:: str![ [ r#"
450460%
451461another shell bash fish zsh
462+ "# ] ] ;
463+ let actual = runtime. complete ( input, & term) . unwrap ( ) ;
464+ assert_data_eq ! ( actual, expected) ;
465+
466+ // Trigger completion immediately after "--"
467+ let input = "exhaustive -- hint\x1b [D\x1b [D\x1b [D\x1b [D\x1b [D\t \t " ;
468+ let expected = snapbox:: str![ [ r#"
469+ %
470+ --generate --empty-choice --help
452471"# ] ] ;
453472 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
454473 assert_data_eq ! ( actual, expected) ;
0 commit comments