diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 1a10bb0577..f93c766513 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -11790,7 +11790,7 @@ ses_arglist( s = buf; } } - if (fputs("argadd ", fd) < 0 + if (fputs("$argadd ", fd) < 0 || ses_put_fname(fd, s, flagp) == FAIL || put_eol(fd) == FAIL) { diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim index a51180cf0b..6ea3255dff 100644 --- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -110,4 +110,16 @@ func Test_mksession_winheight() call delete('Xtest_mks.out') endfunc +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 diff --git a/src/version.c b/src/version.c index 0a5e3d3298..4a796bfc26 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 294, /**/ 293, /**/