Patch 8.2.2991
Problem:    Vim9: no completion for :vim9 and :legacy.
Solution:   Expand argument as a command. (closes #8377)
Files:      src/cmdexpand.c, src/testdir/test_cmdline.vim


*** ../vim-8.2.2990/src/cmdexpand.c     2021-06-02 13:28:11.423120478 +0200
--- src/cmdexpand.c     2021-06-13 17:17:55.036307843 +0200
***************
*** 1370,1375 ****
--- 1370,1377 ----
        case CMD_verbose:
        case CMD_vertical:
        case CMD_windo:
+       case CMD_vim9cmd:
+       case CMD_legacy:
            return arg;
  
        case CMD_filter:
*** ../vim-8.2.2990/src/testdir/test_cmdline.vim        2021-05-30 
14:21:53.852508536 +0200
--- src/testdir/test_cmdline.vim        2021-06-13 17:17:07.928440319 +0200
***************
*** 804,809 ****
--- 804,815 ----
    call feedkeys(":topleft new\<C-A>\<C-B>\"\<CR>", 'xt')
    call assert_equal("\"topleft new", @:)
  
+   " completion for vim9 and legacy commands
+   call feedkeys(":vim9 call strle\<C-A>\<C-B>\"\<CR>", 'xt')
+   call assert_equal("\"vim9 call strlen(", @:)
+   call feedkeys(":legac call strle\<C-A>\<C-B>\"\<CR>", 'xt')
+   call assert_equal("\"legac call strlen(", @:)
+ 
    " completion for the :match command
    call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt')
    call assert_equal("\"match Search /pat/\<C-A>", @:)
*** ../vim-8.2.2990/src/version.c       2021-06-13 17:03:02.022872843 +0200
--- src/version.c       2021-06-13 17:11:24.777411717 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2991,
  /**/

-- 
FIRST VILLAGER: We have found a witch.  May we burn her?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202106131520.15DFKdNN620187%40masaka.moolenaar.net.

Raspunde prin e-mail lui