File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1020,8 +1020,9 @@ set_one_cmd_context(
10201020 p = cmd ;
10211021 while (ASCII_ISALPHA (* p ) || * p == '*' ) // Allow * wild card
10221022 ++ p ;
1023- // a user command may contain digits
1024- if (ASCII_ISUPPER (cmd [0 ]))
1023+ // A user command may contain digits.
1024+ // Include "9" for "vim9*" commands; "vim9cmd" and "vim9script".
1025+ if (ASCII_ISUPPER (cmd [0 ]) || STRNCMP ("vim9" , cmd , 4 ) == 0 )
10251026 while (ASCII_ISALNUM (* p ) || * p == '*' )
10261027 ++ p ;
10271028 // for python 3.x: ":py3*" commands completion
Original file line number Diff line number Diff line change @@ -3553,7 +3553,7 @@ find_ex_command(
35533553 }
35543554 else if (* p == '9' && STRNCMP ("vim9" , eap -> cmd , 4 ) == 0 )
35553555 {
3556- // include "9" for "vim9script"
3556+ // include "9" for "vim9*" commands; "vim9cmd" and " vim9script".
35573557 ++ p ;
35583558 while (ASCII_ISALPHA (* p ))
35593559 ++ p ;
Original file line number Diff line number Diff line change @@ -871,6 +871,10 @@ func Test_cmdline_complete_various()
871871 call feedkeys (" :py3\<C-A>\<C-B> \" \<CR> " , ' xt' )
872872 call assert_equal (' "py3 py3do py3file' , @: )
873873
874+ " completion for the :vim9 commands
875+ call feedkeys (" :vim9\<C-A>\<C-B> \" \<CR> " , ' xt' )
876+ call assert_equal (' "vim9cmd vim9script' , @: )
877+
874878 " redir @" is not the start of a comment. So complete after that
875879 call feedkeys (" :redir @\" | cwin\t \<C-B> \" \<CR> " , ' xt' )
876880 call assert_equal (' "redir @" | cwindow' , @: )
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 2669 ,
753755/**/
754756 2668 ,
755757/**/
You can’t perform that action at this time.
0 commit comments