aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-04 22:39:33 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-05 12:49:26 -0400
commit304c6ce93478d314461eae43dc6c673a2a4f74a0 (patch)
treee620d42e0b127edebd5cbdb98ff95cad423a9af9
parentb959de3a5fca16b9bbd49e30da5dfcbd62bd9970 (diff)
downloadrneovim-304c6ce93478d314461eae43dc6c673a2a4f74a0.tar.gz
rneovim-304c6ce93478d314461eae43dc6c673a2a4f74a0.tar.bz2
rneovim-304c6ce93478d314461eae43dc6c673a2a4f74a0.zip
fixup! fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398)
-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 481febd16b..67b8e7e92f 100644
--- a/src/nvim/ex_session.c
+++ b/src/nvim/ex_session.c
@@ -835,7 +835,7 @@ static int makeopens(FILE *fd, char_u *dirnow)
p_shm) < 0) {
return FAIL;
}
- if (tab_firstwin->w_next != NULL) {
+ if (tab_firstwin != NULL && tab_firstwin->w_next != NULL) {
// Restore 'winminheight' and 'winminwidth'.
PUTLINE_FAIL("let &winminheight = s:save_winminheight");
PUTLINE_FAIL("let &winminwidth = s:save_winminwidth");