diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-06 22:32:54 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-09 09:58:32 -0500 |
commit | 3e2f7baf2138c204a9d94e2dc2cae7900b0b6122 (patch) | |
tree | 7888c7c433ab388db430c8dced80c086389401c8 /src/nvim/testdir | |
parent | c3cb54b5ff20c1a126cbbe9b964ceebff0c60ded (diff) | |
download | rneovim-3e2f7baf2138c204a9d94e2dc2cae7900b0b6122.tar.gz rneovim-3e2f7baf2138c204a9d94e2dc2cae7900b0b6122.tar.bz2 rneovim-3e2f7baf2138c204a9d94e2dc2cae7900b0b6122.zip |
vim-patch:8.1.2262: unpack assignment in function not recognized
Problem: Unpack assignment in function not recognized.
Solution: Skip over "[a, b]". (closes vim/vim#5051)
https://github.com/vim/vim/commit/1e673b9eb686459bd0e7fc3f2199dd077546a18e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_let.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_let.vim b/src/nvim/testdir/test_let.vim index 988d248544..3c0fefbd25 100644 --- a/src/nvim/testdir/test_let.vim +++ b/src/nvim/testdir/test_let.vim @@ -289,4 +289,12 @@ E END endif call assert_equal([], check) + + " unpack assignment + let [a, b, c] =<< END + x + \y + z +END + call assert_equal([' x', ' \y', ' z'], [a, b, c]) endfunc |