Skip to content

Commit 9a27c7f

Browse files
committed
patch 7.4.2348
Problem: Crash on exit when EXITFREE is defined. (Dominique Pelle) Solution: Don't access curwin when exiting.
1 parent c4a908e commit 9a27c7f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/buffer.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,11 @@ close_buffer(
580580

581581
/* When closing the current buffer stop Visual mode before freeing
582582
* anything. */
583-
if (buf == curbuf)
583+
if (buf == curbuf
584+
#if defined(EXITFREE)
585+
&& !entered_free_all_mem
586+
#endif
587+
)
584588
end_visual_mode();
585589

586590
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2348,
766768
/**/
767769
2347,
768770
/**/

0 commit comments

Comments
 (0)