fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398)

tab_firstwin can be NULL.
This commit is contained in:
Jan Edmund Lazo
2021-06-02 21:45:42 -04:00
parent d1238856a8
commit 68cb51ab0a

View File

@@ -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");