mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
vim-patch:8.0.0679
Problem: Using freed memory.
Solution: Get the parent frame pointer earlier.
41cc038ff8
This commit is contained in:
parent
f0a9b7ff63
commit
1fb3339844
@ -273,7 +273,7 @@ static const int included_patches[] = {
|
||||
// 682,
|
||||
// 681,
|
||||
// 680,
|
||||
// 679,
|
||||
679,
|
||||
678,
|
||||
// 677,
|
||||
// 676,
|
||||
|
@ -1878,7 +1878,7 @@ int win_close(win_T *win, int free_buf)
|
||||
int dir;
|
||||
int help_window = FALSE;
|
||||
tabpage_T *prev_curtab = curtab;
|
||||
frame_T *win_frame = win->w_frame;
|
||||
frame_T *win_frame = win->w_frame->fr_parent;
|
||||
|
||||
if (last_window()) {
|
||||
EMSG(_("E444: Cannot close last window"));
|
||||
@ -2030,7 +2030,7 @@ int win_close(win_T *win, int free_buf)
|
||||
if (p_ea && (*p_ead == 'b' || *p_ead == dir)) {
|
||||
// If the frame of the closed window contains the new current window,
|
||||
// only resize that frame. Otherwise resize all windows.
|
||||
win_equal(curwin, curwin->w_frame->fr_parent == win_frame->fr_parent, dir);
|
||||
win_equal(curwin, curwin->w_frame->fr_parent == win_frame, dir);
|
||||
} else {
|
||||
win_comp_pos();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user