diff options
| author | Michael Schupikov <DarkDeepBlue@users.noreply.github.com> | 2017-09-23 08:32:29 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-23 08:32:29 +0200 |
| commit | f8dcd319d9338cccc66ae481d5865e8816794306 (patch) | |
| tree | 88a5e662e43d3d8132032ded70abdb6f7788f8c7 /src/nvim/testdir | |
| parent | 2e9a345b3ea57f207352e8a83939f48a0ea1caf2 (diff) | |
| download | rneovim-f8dcd319d9338cccc66ae481d5865e8816794306.tar.gz rneovim-f8dcd319d9338cccc66ae481d5865e8816794306.tar.bz2 rneovim-f8dcd319d9338cccc66ae481d5865e8816794306.zip | |
vim-patch:8.0.0294 (#7305)
Problem: Argument list is not stored correctly in a session file.
(lgpasquale)
Solution: Use "$argadd" instead of "argadd". (closes vim/vim#1434)
https://github.com/vim/vim/commit/79da563cf9220b9abb83455a68d995684133ea56
Signed-off-by: Michael Schupikov <michael@schupikov.de>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/Makefile | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_mksession.vim | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index 96de7224c5..9133bfc0a2 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -58,6 +58,7 @@ NEW_TESTS ?= \ test_match.res \ test_matchadd_conceal.res \ test_matchadd_conceal_utf8.res \ + test_mksession.res \ test_nested_function.res \ test_normal.res \ test_quickfix.res \ diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim new file mode 100644 index 0000000000..2238213850 --- /dev/null +++ b/src/nvim/testdir/test_mksession.vim @@ -0,0 +1,15 @@ +" Tests for sessions + +" Verify that arglist is stored correctly to the session file. +func Test_mksession_arglist() + argdel * + next file1 file2 file3 file4 + mksession! Xtest_mks.out + source Xtest_mks.out + call assert_equal(['file1', 'file2', 'file3', 'file4'], argv()) + + call delete('Xtest_mks.out') + argdel * +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |