neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 525c348c29a63f1948f9221beb1a07ef148c7101
parent e0dcdef1810b558618ac01a25b44523c9d167043
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Sat, 20 Dec 2025 20:50:02 -0500

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.

https://github.com/vim/vim/commit/4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6

Vim9 ":disassemble" is N/A.

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Msrc/nvim/cmdexpand_defs.h | 1+
Mtest/old/testdir/test_cmdline.vim | 10++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/nvim/cmdexpand_defs.h b/src/nvim/cmdexpand_defs.h @@ -102,6 +102,7 @@ enum { EXPAND_MAPCLEAR, EXPAND_ARGLIST, EXPAND_DIFF_BUFFERS, + // EXPAND_DISASSEMBLE, EXPAND_BREAKPOINT, EXPAND_SCRIPTNAMES, EXPAND_RUNTIME, diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim @@ -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')