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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202108281356.17SDug0I3085915%40masaka.moolenaar.net.

Raspunde prin e-mail lui