summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-05 21:55:53 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-05 21:55:53 +0100
commit139348f3e8370826a1ceb10c73f7c7bb586f8125 (patch)
tree65a97250ed20a876b16ecf1e17a0cae83f889aaa /src/session.c
parentab65fc77c5389f7d3f788bbdc3d931561feab131 (diff)
downloadvim-git-139348f3e8370826a1ceb10c73f7c7bb586f8125.tar.gz
patch 8.2.2467: script generated by :mkview changes alternate filev8.2.2467
Problem: Script generated by :mkview changes alternate file. Solution: Only write :balt in the session file. (Harish Rajagopal, closes #7779)
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index d0373bb39..a734656d5 100644
--- a/src/session.c
+++ b/src/session.c
@@ -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