1
0
forked from aniani/vim

patch 8.2.2992: Vim9: completion for :disassemble is incomplete

Problem:    Vim9: completion for :disassemble is incomplete.
Solution:   Recognize the "debug" and "profile" arguments.
This commit is contained in:
Bram Moolenaar
2021-06-13 18:38:48 +02:00
parent e70e12b32f
commit 4ee9d8e04d
6 changed files with 53 additions and 1 deletions

View File

@@ -810,6 +810,16 @@ func Test_cmdline_complete_various()
call feedkeys(":legac call strle\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"legac call strlen(", @:)
" completion for the :disassemble command
call feedkeys(":disas deb\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"disas debug", @:)
call feedkeys(":disas pro\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"disas profile", @:)
call feedkeys(":disas debug Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"disas debug Test_cmdline_complete_various", @:)
call feedkeys(":disas profile Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"disas profile Test_cmdline_complete_various", @:)
" completion for the :match command
call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"match Search /pat/\<C-A>", @:)