aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-02 21:45:42 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-02 21:45:44 -0400
commit68cb51ab0adfe5b7df5457e33fb9f2e26b8dcc71 (patch)
treed9f56fba3309e4d3c0616a6e7489413548e79378 /src
parentd1238856a86be4cc477b6cbadfd9291a995affdb (diff)
downloadrneovim-68cb51ab0adfe5b7df5457e33fb9f2e26b8dcc71.tar.gz
rneovim-68cb51ab0adfe5b7df5457e33fb9f2e26b8dcc71.tar.bz2
rneovim-68cb51ab0adfe5b7df5457e33fb9f2e26b8dcc71.zip
fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398)
tab_firstwin can be NULL.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c
index c1e52d6994..481febd16b 100644
--- a/src/nvim/ex_session.c
+++ b/src/nvim/ex_session.c
@@ -725,7 +725,7 @@ static int makeopens(FILE *fd, char_u *dirnow)
}
}
- if (tab_firstwin->w_next != NULL) {
+ if (tab_firstwin != NULL && tab_firstwin->w_next != NULL) {
// Go to the first window.
PUTLINE_FAIL("wincmd t");