mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.0.0482
Problem: The setbufvar() function may mess up the window layout. (Kay Z.)
Solution: Do not check the window to be valid if it is NULL.
2c90d51123
This commit is contained in:
@@ -5377,7 +5377,8 @@ static int check_snapshot_rec(frame_T *sn, frame_T *fr)
|
||||
|| (sn->fr_next != NULL
|
||||
&& check_snapshot_rec(sn->fr_next, fr->fr_next) == FAIL)
|
||||
|| (sn->fr_child != NULL
|
||||
&& check_snapshot_rec(sn->fr_child, fr->fr_child) == FAIL))
|
||||
&& check_snapshot_rec(sn->fr_child, fr->fr_child) == FAIL)
|
||||
|| (sn->fr_win != NULL && !win_valid(sn->fr_win)))
|
||||
return FAIL;
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user