Patch 8.2.3383
Problem: Vim9: completion for :disassemble adds parenthesis.
Solution: Don't add parenthesis. (Naohiro Ono, closes #8802)
Files: src/userfunc.c, src/testdir/test_cmdline.vim
*** ../vim-8.2.3382/src/userfunc.c 2021-08-15 19:28:01.808558478 +0200
--- src/userfunc.c 2021-08-28 15:50:35.226169602 +0200
***************
*** 4625,4631 ****
return fp->uf_name; // prevents overflow
cat_func_name(IObuff, fp);
! if (xp->xp_context != EXPAND_USER_FUNC)
{
STRCAT(IObuff, "(");
if (!has_varargs(fp) && fp->uf_args.ga_len == 0)
--- 4625,4632 ----
return fp->uf_name; // prevents overflow
cat_func_name(IObuff, fp);
! if (xp->xp_context != EXPAND_USER_FUNC
! && xp->xp_context != EXPAND_DISASSEMBLE)
{
STRCAT(IObuff, "(");
if (!has_varargs(fp) && fp->uf_args.ga_len == 0)
*** ../vim-8.2.3382/src/testdir/test_cmdline.vim 2021-08-27 20:59:31.541835086 +0200
--- src/testdir/test_cmdline.vim 2021-08-28 15:54:38.621438010 +0200
***************
*** 841,849 ****
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: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')
--- 841,851 ----
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 Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal("\"disas 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')
*** ../vim-8.2.3382/src/version.c 2021-08-28 14:58:40.886062766 +0200
--- src/version.c 2021-08-28 15:51:47.409954242 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3383,
/**/
--
ARTHUR: I've said I'm sorry about the old woman, but from the behind you
looked ...
DENNIS: What I object to is that you automatically treat me like an inferior...
ARTHUR: Well ... I AM king.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///