mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2991: Vim9: no completion for :vim9 and :legacy
Problem: Vim9: no completion for :vim9 and :legacy. Solution: Expand argument as a command. (closes #8377)
This commit is contained in:
parent
2e66b0d137
commit
e70e12b32f
@ -1370,6 +1370,8 @@ set_one_cmd_context(
|
||||
case CMD_verbose:
|
||||
case CMD_vertical:
|
||||
case CMD_windo:
|
||||
case CMD_vim9cmd:
|
||||
case CMD_legacy:
|
||||
return arg;
|
||||
|
||||
case CMD_filter:
|
||||
|
@ -804,6 +804,12 @@ func Test_cmdline_complete_various()
|
||||
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>", @:)
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2991,
|
||||
/**/
|
||||
2990,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user