mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
99f2dc1341
commit
db128974fc
@ -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
|
||||
// anything.
|
||||
if (is_curbuf && VIsual_active) {
|
||||
if (is_curbuf && VIsual_active
|
||||
#if defined(EXITFREE)
|
||||
&& !entered_free_all_mem
|
||||
#endif
|
||||
) {
|
||||
end_visual_mode();
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ static int included_patches[] = {
|
||||
// 2351 NA
|
||||
// 2350,
|
||||
// 2349,
|
||||
// 2348,
|
||||
2348,
|
||||
2347,
|
||||
// 2346,
|
||||
// 2345 NA
|
||||
|
Loading…
Reference in New Issue
Block a user