Skip to content

Commit

Permalink
patch 8.0.0294: argument list is not stored correctly in a session file
Browse files Browse the repository at this point in the history
Problem:    Argument list is not stored correctly in a session file.
            (lgpasquale)
Solution:   Use "$argadd" instead of "argadd". (closes #1434)
  • Loading branch information
brammool committed Feb 1, 2017
1 parent e5f2a07 commit 79da563
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ex_docmd.c
Expand Up @@ -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)
{
Expand Down
12 changes: 12 additions & 0 deletions src/testdir/test_mksession.vim
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
294,
/**/
293,
/**/
Expand Down

0 comments on commit 79da563

Please sign in to comment.