Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 22649:6e965b3587a4 v8.2.1873
patch 8.2.1873: Vim9: missing white space when using <f-args>
Commit: https://github.com/vim/vim/commit/20d89e0ac65686481f97657008deede0b39ef5db
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 20 23:11:33 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Oct 2020 23:15:03 +0200 |
parents | ef8a3177edc1 |
children | 80b4e604d1d5 |
comparison
equal
deleted
inserted
replaced
22648:851db792dfa7 | 22649:6e965b3587a4 |
---|---|
373 getline(1, 3)->assert_equal(['xxx baz xxx', 'xxx baz xxx', 'xxx baz xx baz']) | 373 getline(1, 3)->assert_equal(['xxx baz xxx', 'xxx baz xxx', 'xxx baz xx baz']) |
374 | 374 |
375 bwipe! | 375 bwipe! |
376 enddef | 376 enddef |
377 | 377 |
378 def Test_f_args() | |
379 var lines =<< trim END | |
380 vim9script | |
381 | |
382 func SaveCmdArgs(...) | |
383 let g:args = a:000 | |
384 endfunc | |
385 | |
386 command -nargs=* TestFArgs call SaveCmdArgs(<f-args>) | |
387 | |
388 TestFArgs | |
389 assert_equal([], g:args) | |
390 | |
391 TestFArgs one two three | |
392 assert_equal(['one', 'two', 'three'], g:args) | |
393 END | |
394 CheckScriptSuccess(lines) | |
395 enddef | |
378 | 396 |
379 | 397 |
380 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 398 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |