diff --git a/src/term.c b/src/term.c index bb4bad1c96..9e9a67b921 100644 --- a/src/term.c +++ b/src/term.c @@ -3411,9 +3411,10 @@ set_shellsize(int width, int height, int mustset) return; // curwin->w_buffer can be NULL when we are closing a window and the - // buffer has already been closed and removing a scrollbar causes a resize - // event. Don't resize then, it will happen after entering another buffer. - if (curwin->w_buffer == NULL) + // buffer (or window) has already been closed and removing a scrollbar + // causes a resize event. Don't resize then, it will happen after entering + // another buffer. + if (curwin->w_buffer == NULL || curwin->w_lines == NULL) return; ++busy; diff --git a/src/version.c b/src/version.c index 27907d721e..4e30cdafb9 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2248, /**/ 2247, /**/