comparison src/testdir/test_cmdline.vim @ 25682:17ba70005a2e v8.2.3377

patch 8.2.3377: Vim9: :disass completion does not understand "s:" Commit: https://github.com/vim/vim/commit/47016f57724d3970c54f4ca1f392dff39d3fecae Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 26 16:39:58 2021 +0200 patch 8.2.3377: Vim9: :disass completion does not understand "s:" Problem: Vim9: :disass completion does not understand "s:". Solution: Expand "s:" to a pattern. (closes https://github.com/vim/vim/issues/8780)
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Aug 2021 16:45:04 +0200
parents ef38fc02faaa
children ba9d587f0b29
comparison
equal deleted inserted replaced
25681:17194bce690e 25682:17ba70005a2e
749 call assert_match('"' .. cmd .. ' foo SomeVar', @:) 749 call assert_match('"' .. cmd .. ' foo SomeVar', @:)
750 endfor 750 endfor
751 unlet g:SomeVar 751 unlet g:SomeVar
752 endfunc 752 endfunc
753 753
754 " Unique function name for completion below
755 func s:WeirdFunc()
756 echo 'weird'
757 endfunc
758
754 " Test for various command-line completion 759 " Test for various command-line completion
755 func Test_cmdline_complete_various() 760 func Test_cmdline_complete_various()
756 " completion for a command starting with a comment 761 " completion for a command starting with a comment
757 call feedkeys(": :|\"\<C-A>\<C-B>\"\<CR>", 'xt') 762 call feedkeys(": :|\"\<C-A>\<C-B>\"\<CR>", 'xt')
758 call assert_equal("\" :|\"\<C-A>", @:) 763 call assert_equal("\" :|\"\<C-A>", @:)
830 call assert_equal("\"disas profile", @:) 835 call assert_equal("\"disas profile", @:)
831 call feedkeys(":disas debug Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt') 836 call feedkeys(":disas debug Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
832 call assert_equal("\"disas debug Test_cmdline_complete_various", @:) 837 call assert_equal("\"disas debug Test_cmdline_complete_various", @:)
833 call feedkeys(":disas profile Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt') 838 call feedkeys(":disas profile Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
834 call assert_equal("\"disas profile Test_cmdline_complete_various", @:) 839 call assert_equal("\"disas profile Test_cmdline_complete_various", @:)
840
841 call feedkeys(":disas s:WeirdF\<C-A>\<C-B>\"\<CR>", 'xt')
842 call assert_match('"disas <SNR>\d\+_WeirdFunc()', @:)
835 843
836 " completion for the :match command 844 " completion for the :match command
837 call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt') 845 call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt')
838 call assert_equal("\"match Search /pat/\<C-A>", @:) 846 call assert_equal("\"match Search /pat/\<C-A>", @:)
839 847