To: vim_dev@googlegroups.com Subject: Patch 8.2.1873 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1873 Problem: Vim9: missing white space when using . 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() + + 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 -- Bram@Moolenaar.net -- 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 ///