0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.2348

Problem:    Crash on exit when EXITFREE is defined. (Dominique Pelle)
Solution:   Don't access curwin when exiting.
This commit is contained in:
Bram Moolenaar
2016-09-09 12:57:09 +02:00
parent c4a908e836
commit 9a27c7fde6
2 changed files with 7 additions and 1 deletions

View 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();
/*

View File

@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2348,
/**/
2347,
/**/