mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user