mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
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)
79da563cf9
Signed-off-by: Michael Schupikov <michael@schupikov.de>
This commit is contained in:

committed by
Justin M. Keyes

parent
2e9a345b3e
commit
f8dcd319d9
@@ -9378,7 +9378,7 @@ ses_arglist (
|
|||||||
(void)vim_FullName((char *)s, (char *)buf, MAXPATHL, FALSE);
|
(void)vim_FullName((char *)s, (char *)buf, MAXPATHL, FALSE);
|
||||||
s = buf;
|
s = buf;
|
||||||
}
|
}
|
||||||
if (fputs("argadd ", fd) < 0 || ses_put_fname(fd, s, flagp) == FAIL
|
if (fputs("$argadd ", fd) < 0 || ses_put_fname(fd, s, flagp) == FAIL
|
||||||
|| put_eol(fd) == FAIL) {
|
|| put_eol(fd) == FAIL) {
|
||||||
xfree(buf);
|
xfree(buf);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@@ -58,6 +58,7 @@ NEW_TESTS ?= \
|
|||||||
test_match.res \
|
test_match.res \
|
||||||
test_matchadd_conceal.res \
|
test_matchadd_conceal.res \
|
||||||
test_matchadd_conceal_utf8.res \
|
test_matchadd_conceal_utf8.res \
|
||||||
|
test_mksession.res \
|
||||||
test_nested_function.res \
|
test_nested_function.res \
|
||||||
test_normal.res \
|
test_normal.res \
|
||||||
test_quickfix.res \
|
test_quickfix.res \
|
||||||
|
15
src/nvim/testdir/test_mksession.vim
Normal file
15
src/nvim/testdir/test_mksession.vim
Normal file
@@ -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
|
@@ -658,7 +658,7 @@ static const int included_patches[] = {
|
|||||||
297,
|
297,
|
||||||
// 296,
|
// 296,
|
||||||
// 295,
|
// 295,
|
||||||
// 294,
|
294,
|
||||||
// 293,
|
// 293,
|
||||||
// 292,
|
// 292,
|
||||||
291,
|
291,
|
||||||
|
Reference in New Issue
Block a user