To: vim_dev@googlegroups.com Subject: Patch 8.2.2991 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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\\\"\", 'xt') call assert_equal("\"topleft new", @:) + " completion for vim9 and legacy commands + call feedkeys(":vim9 call strle\\\"\", 'xt') + call assert_equal("\"vim9 call strlen(", @:) + call feedkeys(":legac call strle\\\"\", 'xt') + call assert_equal("\"legac call strlen(", @:) + " completion for the :match command call feedkeys(":match Search /pat/\\\"\", 'xt') call assert_equal("\"match Search /pat/\", @:) *** ../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 -- Bram@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 ///