mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user