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.

4ee9d8e04d

Vim9 ":disassemble" is N/A.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2025-12-20 20:50:02 -05:00
parent e0dcdef181
commit 525c348c29
2 changed files with 11 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ enum {
EXPAND_MAPCLEAR,
EXPAND_ARGLIST,
EXPAND_DIFF_BUFFERS,
// EXPAND_DISASSEMBLE,
EXPAND_BREAKPOINT,
EXPAND_SCRIPTNAMES,
EXPAND_RUNTIME,

View File

@@ -1307,6 +1307,16 @@ func Test_cmdline_complete_various()
call feedkeys(":topleft new\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"topleft new", @:)
" 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", @:)
" call feedkeys(":disas \<S-Tab>\<C-B>\"\<CR>", 'xt')
" call assert_match('"disas <SNR>\d\+_', @:)
" call feedkeys(":disas debug \<S-Tab>\<C-B>\"\<CR>", 'xt')