mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:8.0.0483
Problem: Illegal memory access when using :all. (Dominique Pelle)
Solution: Adjust the cursor position right after setting "curwin".
f79225ed4f
This commit is contained in:
@@ -2018,10 +2018,12 @@ int win_close(win_T *win, int free_buf)
|
||||
}
|
||||
curbuf = curwin->w_buffer;
|
||||
close_curwin = TRUE;
|
||||
|
||||
// The cursor position may be invalid if the buffer changed after last
|
||||
// using the window.
|
||||
check_cursor();
|
||||
}
|
||||
if (p_ea
|
||||
&& (*p_ead == 'b' || *p_ead == dir)
|
||||
) {
|
||||
if (p_ea && (*p_ead == 'b' || *p_ead == dir)) {
|
||||
win_equal(curwin, true, dir);
|
||||
} else {
|
||||
win_comp_pos();
|
||||
|
Reference in New Issue
Block a user