diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-26 08:14:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 08:14:09 +0200 |
commit | cafb92487b308b44f38d004c6d1c540f00656021 (patch) | |
tree | 4da0f7814d8ae94d830f71db35a836a92767a8f2 /src/nvim/ex_cmds.c | |
parent | 1cbc8301897c09d381074397b82450f81d7854be (diff) | |
parent | b79523681d2b7cf7e1c1f0b9174aa3804e1d5811 (diff) | |
download | rneovim-cafb92487b308b44f38d004c6d1c540f00656021.tar.gz rneovim-cafb92487b308b44f38d004c6d1c540f00656021.tar.bz2 rneovim-cafb92487b308b44f38d004c6d1c540f00656021.zip |
Merge #8642 from janlazo/vim-8.0.0704
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index dbf11514cf..15b49b69ce 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2352,8 +2352,8 @@ int do_ecmd( } else { // <VN> We could instead free the synblock // and re-attach to buffer, perhaps. - if (curwin->w_buffer != NULL - && curwin->w_s == &(curwin->w_buffer->b_s)) { + if (curwin->w_buffer == NULL + || curwin->w_s == &(curwin->w_buffer->b_s)) { curwin->w_s = &(buf->b_s); } |