From e0dcdef1810b558618ac01a25b44523c9d167043 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 20 Dec 2025 19:45:07 -0500 Subject: [PATCH] vim-patch:8.2.3431: completion for :disas sorts local functions first Problem: Completion for :disas sorts local functions first. Solution: Sort local functions last, like with :delfunc. (Naohiro Ono, closes vim/vim#8860) https://github.com/vim/vim/commit/dfe04dbff5863f6c089da8831d7ac2a3421a44b7 Vim9 ":disassemble" is N/A but "commented" test code is a hint for future patches. Co-authored-by: naohiro ono --- test/old/testdir/test_cmdline.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index 18cce8e25f..9d9ccb0ee0 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -1307,6 +1307,11 @@ func Test_cmdline_complete_various() call feedkeys(":topleft new\\\"\", 'xt') call assert_equal("\"topleft new", @:) + " call feedkeys(":disas \\\"\", 'xt') + " call assert_match('"disas \d\+_', @:) + " call feedkeys(":disas debug \\\"\", 'xt') + " call assert_match('"disas debug \d\+_', @:) + " completion for the :match command call feedkeys(":match Search /pat/\\\"\", 'xt') call assert_equal("\"match Search /pat/\", @:)