1
0
forked from aniani/vim

patch 8.2.1873: Vim9: missing white space when using <f-args>

Problem:    Vim9: missing white space when using <f-args>.
Solution:   Add spaces. (Christian J. Robinson)
This commit is contained in:
Bram Moolenaar
2020-10-20 23:11:33 +02:00
parent e9f9f16387
commit 20d89e0ac6
3 changed files with 22 additions and 1 deletions

View File

@@ -375,6 +375,24 @@ def Test_command_star_range()
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