mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:8.2.1905: the wininfo list may contain stale entries (#14884)
Problem: The wininfo list may contain stale entries.
Solution: When closing a window remove any other entry where the window
pointer is NULL.
4882d98339
This commit is contained in:
@@ -840,11 +840,7 @@ static void clear_wininfo(buf_T *buf)
|
||||
while (buf->b_wininfo != NULL) {
|
||||
wip = buf->b_wininfo;
|
||||
buf->b_wininfo = wip->wi_next;
|
||||
if (wip->wi_optset) {
|
||||
clear_winopt(&wip->wi_opt);
|
||||
deleteFoldRecurse(buf, &wip->wi_folds);
|
||||
}
|
||||
xfree(wip);
|
||||
free_wininfo(wip, buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user