diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-09-26 16:05:49 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-09-26 16:05:49 -0400 |
commit | d97a8e312e506b710284ca3495ed1eb4ea172f73 (patch) | |
tree | ddf67487c4076ddc79d6f7c3cd6e7f5f22ea83b1 /src/nvim/buffer.c | |
parent | f7bb349848de3be4013e30e8a5f603aa7db5a4a8 (diff) | |
parent | 2b937fe00d8b0b308cce87aee9f70699f8474c1e (diff) | |
download | rneovim-d97a8e312e506b710284ca3495ed1eb4ea172f73.tar.gz rneovim-d97a8e312e506b710284ca3495ed1eb4ea172f73.tar.bz2 rneovim-d97a8e312e506b710284ca3495ed1eb4ea172f73.zip |
Merge pull request #1209 from atwupack/vp-7.4.320
vim-patch:7.4.320
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4eff8df9f5..83cddb85bf 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -318,7 +318,7 @@ close_buffer ( } else if (buf->b_p_bh[0] == 'u') /* 'bufhidden' == "unload" */ unload_buf = true; - if (win != NULL) { + if (win_valid(win)) { /* Set b_last_cursor when closing the last window for the buffer. * Remember the last cursor position and window options of the buffer. * This used to be only for the current window, but then options like |