1
0
forked from aniani/vim

patch 8.2.2467: script generated by :mkview changes alternate file

Problem:    Script generated by :mkview changes alternate file.
Solution:   Only write :balt in the session file. (Harish Rajagopal,
            closes #7779)
This commit is contained in:
Bram Moolenaar
2021-02-05 21:55:53 +01:00
parent ab65fc77c5
commit 139348f3e8
3 changed files with 18 additions and 1 deletions

View File

@@ -402,7 +402,8 @@ put_view(
buf_T *alt = buflist_findnr(wp->w_alt_fnum);
// Set the alternate file.
if (alt != NULL
if ((flagp == &ssop_flags)
&& alt != NULL
&& alt->b_fname != NULL
&& *alt->b_fname != NUL
&& (fputs("balt ", fd) < 0