diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 02:13:54 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 18:43:01 +0100 |
commit | 54f31187ba006049ba455a1eeea4781750a3958d (patch) | |
tree | f28cdea12aee71a5b0394ca2a98d6b5e6c702a0e /src/nvim/window.c | |
parent | f58a593cea3872c7b8b862375b6982436ee88ef2 (diff) | |
download | rneovim-54f31187ba006049ba455a1eeea4781750a3958d.tar.gz rneovim-54f31187ba006049ba455a1eeea4781750a3958d.tar.bz2 rneovim-54f31187ba006049ba455a1eeea4781750a3958d.zip |
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.
https://github.com/vim/vim/commit/2c90d51123fba44a90e09aa4a4f2b7d972dadb94
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 82e97ea00d..ebb998e3af 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -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; } |