Patch 8.2.1873
Problem:    Vim9: missing white space when using <f-args>.
Solution:   Add spaces. (Christian J. Robinson)
Files:      src/usercmd.c, src/testdir/test_vim9_cmd.vim


*** ../vim-8.2.1872/src/usercmd.c       2020-06-12 22:59:07.274097177 +0200
--- src/usercmd.c       2020-10-20 23:03:40.405920135 +0200
***************
*** 1153,1159 ****
            p = skipwhite(p);
            if (*p == NUL)
                break;
!           len += 3; // ","
        }
        else
        {
--- 1153,1159 ----
            p = skipwhite(p);
            if (*p == NUL)
                break;
!           len += 4; // ", "
        }
        else
        {
***************
*** 1199,1204 ****
--- 1199,1205 ----
                break;
            *q++ = '"';
            *q++ = ',';
+           *q++ = ' ';
            *q++ = '"';
        }
        else
*** ../vim-8.2.1872/src/testdir/test_vim9_cmd.vim       2020-10-04 
16:06:00.513884339 +0200
--- src/testdir/test_vim9_cmd.vim       2020-10-20 23:00:33.874508149 +0200
***************
*** 375,380 ****
--- 375,398 ----
    bwipe!
  enddef
  
+ def Test_f_args()
+   var lines =<< trim END
+     vim9script
+ 
+     func SaveCmdArgs(...)
+       let g:args = a:000
+     endfunc
+ 
+     command -nargs=* TestFArgs call SaveCmdArgs(<f-args>)
+ 
+     TestFArgs
+     assert_equal([], g:args)
+ 
+     TestFArgs one two three
+     assert_equal(['one', 'two', 'three'], g:args)
+   END
+   CheckScriptSuccess(lines)
+ enddef
  
  
  " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
*** ../vim-8.2.1872/src/version.c       2020-10-20 19:01:26.574305119 +0200
--- src/version.c       2020-10-20 23:11:11.812537318 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     1873,
  /**/

-- 
>From "know your smileys":
 |-(    Contact lenses, but has lost them

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202010202111.09KLBwFG1506812%40masaka.moolenaar.net.

Raspunde prin e-mail lui