From 68cb51ab0adfe5b7df5457e33fb9f2e26b8dcc71 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 2 Jun 2021 21:45:42 -0400 Subject: fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398) tab_firstwin can be NULL. --- src/nvim/ex_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); -- cgit