vim-patch:7.4.2348

Problem:    Crash on exit when EXITFREE is defined. (Dominique Pelle)
Solution:   Don't access curwin when exiting.

9a27c7fde6
This commit is contained in:
raichoo
2017-03-16 07:40:31 +01:00
parent 99f2dc1341
commit db128974fc
2 changed files with 6 additions and 2 deletions

View File

@@ -441,7 +441,11 @@ void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last)
// When closing the current buffer stop Visual mode before freeing // When closing the current buffer stop Visual mode before freeing
// anything. // anything.
if (is_curbuf && VIsual_active) { if (is_curbuf && VIsual_active
#if defined(EXITFREE)
&& !entered_free_all_mem
#endif
) {
end_visual_mode(); end_visual_mode();
} }

View File

@@ -93,7 +93,7 @@ static int included_patches[] = {
// 2351 NA // 2351 NA
// 2350, // 2350,
// 2349, // 2349,
// 2348, 2348,
2347, 2347,
// 2346, // 2346,
// 2345 NA // 2345 NA