# HG changeset patch # User Christian Brabandt # Date 1473418809 -7200 # Node ID f1ad88f3834ca51426fb3502a40a748b5175f301 # Parent 68d73ceaa9bcbe60867df09de5dbb5628c90efd5 commit https://github.com/vim/vim/commit/9a27c7fde6d453d9892b6f6baa756bce4d6d419d Author: Bram Moolenaar Date: Fri Sep 9 12:57:09 2016 +0200 patch 7.4.2348 Problem: Crash on exit when EXITFREE is defined. (Dominique Pelle) Solution: Don't access curwin when exiting. diff --git a/src/buffer.c b/src/buffer.c --- a/src/buffer.c +++ b/src/buffer.c @@ -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(); /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2348, +/**/ 2347, /**/ 2346,