Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -751,6 +751,11 @@ func Test_cmdline_complete_expression() unlet g:SomeVar endfunc +" Unique function name for completion below +func s:WeirdFunc() + echo 'weird' +endfunc + " Test for various command-line completion func Test_cmdline_complete_various() " completion for a command starting with a comment @@ -833,6 +838,9 @@ func 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:WeirdF\<C-A>\<C-B>\"\<CR>", 'xt') + call assert_match('"disas <SNR>\d\+_WeirdFunc()', @:) + " completion for the :match command call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt') call assert_equal("\"match Search /pat/\<C-A>", @:)