]> granicus.if.org Git - vim/commitdiff
patch 8.2.2248: ASAN error on exit with GUI v8.2.2248
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Dec 2020 13:08:35 +0000 (14:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Dec 2020 13:08:35 +0000 (14:08 +0100)
Problem:    ASAN error on exit with GUI.
Solution:   Check the window still has lines. (Christian Brabandt,
            closes #7573)

src/term.c
src/version.c

index bb4bad1c96912c9944f945feec545f2663fa6bdc..9e9a67b9216c210bd5089af05dcb63435e8124cf 100644 (file)
@@ -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;
index 27907d721e773f1a79cfd5dcba595393e19c4133..4e30cdafb917fa54f73c2fdd4696298e5e04d91b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2248,
 /**/
     2247,
 /**/