mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.2248: ASAN error on exit with GUI
Problem: ASAN error on exit with GUI. Solution: Check the window still has lines. (Christian Brabandt, closes #7573)
This commit is contained in:
parent
467676d468
commit
2808da39f9
@ -3411,9 +3411,10 @@ set_shellsize(int width, int height, int mustset)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// curwin->w_buffer can be NULL when we are closing a window and the
|
// 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
|
// buffer (or window) has already been closed and removing a scrollbar
|
||||||
// event. Don't resize then, it will happen after entering another buffer.
|
// causes a resize event. Don't resize then, it will happen after entering
|
||||||
if (curwin->w_buffer == NULL)
|
// another buffer.
|
||||||
|
if (curwin->w_buffer == NULL || curwin->w_lines == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
++busy;
|
++busy;
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2248,
|
||||||
/**/
|
/**/
|
||||||
2247,
|
2247,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user