]> granicus.if.org Git - vim/commitdiff
patch 7.4.2348 v7.4.2348
authorBram Moolenaar <Bram@vim.org>
Fri, 9 Sep 2016 10:57:09 +0000 (12:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 9 Sep 2016 10:57:09 +0000 (12:57 +0200)
Problem:    Crash on exit when EXITFREE is defined. (Dominique Pelle)
Solution:   Don't access curwin when exiting.

src/buffer.c
src/version.c

index 3bfd9752206b5fe2d23801edf5ffa222d92b1193..55e200ab889f8844b82083d86af662f2553e9408 100644 (file)
@@ -580,7 +580,11 @@ aucmd_abort:
 
     /* When closing the current buffer stop Visual mode before freeing
      * anything. */
-    if (buf == curbuf)
+    if (buf == curbuf
+#if defined(EXITFREE)
+           && !entered_free_all_mem
+#endif
+           )
        end_visual_mode();
 
     /*
index 8740a985e212e7274cc521eabca315b932e80bac..b2b9334e8cc31ecd5a7b5e336198eab063dfec15 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2348,
 /**/
     2347,
 /**/