mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.0.0482: the setbufvar() function may mess up the window layout
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.
This commit is contained in:
@@ -6563,7 +6563,7 @@ check_snapshot_rec(frame_T *sn, frame_T *fr)
|
||||
&& check_snapshot_rec(sn->fr_next, fr->fr_next) == FAIL)
|
||||
|| (sn->fr_child != NULL
|
||||
&& check_snapshot_rec(sn->fr_child, fr->fr_child) == FAIL)
|
||||
|| !win_valid(sn->fr_win))
|
||||
|| (sn->fr_win != NULL && !win_valid(sn->fr_win)))
|
||||
return FAIL;
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user