0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0294: argument list is not stored correctly in a session file

Problem:    Argument list is not stored correctly in a session file.
            (lgpasquale)
Solution:   Use "$argadd" instead of "argadd". (closes #1434)
This commit is contained in:
Bram Moolenaar
2017-02-01 22:52:44 +01:00
parent e5f2a075e3
commit 79da563cf9
3 changed files with 15 additions and 1 deletions

View File

@@ -11790,7 +11790,7 @@ ses_arglist(
s = buf; s = buf;
} }
} }
if (fputs("argadd ", fd) < 0 if (fputs("$argadd ", fd) < 0
|| ses_put_fname(fd, s, flagp) == FAIL || ses_put_fname(fd, s, flagp) == FAIL
|| put_eol(fd) == FAIL) || put_eol(fd) == FAIL)
{ {

View File

@@ -110,4 +110,16 @@ func Test_mksession_winheight()
call delete('Xtest_mks.out') call delete('Xtest_mks.out')
endfunc 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 " vim: shiftwidth=2 sts=2 expandtab

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
294,
/**/ /**/
293, 293,
/**/ /**/