diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-27 13:16:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-27 13:16:17 +0200 |
commit | 2b1398c31ea9ab9f4aaa40188f24d7e76a519e2d (patch) | |
tree | 74552b2241849c83e926d4bf4cb7bd8bceb71c9e /src/nvim/buffer.c | |
parent | edc80f6b46f51ea1137289301914c0f90db19295 (diff) | |
parent | 9cd7e199048161c5224aca885af8b7945236392d (diff) | |
download | rneovim-2b1398c31ea9ab9f4aaa40188f24d7e76a519e2d.tar.gz rneovim-2b1398c31ea9ab9f4aaa40188f24d7e76a519e2d.tar.bz2 rneovim-2b1398c31ea9ab9f4aaa40188f24d7e76a519e2d.zip |
Merge #6372 from lonerover/vim-7.4.2307
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 3c416c157f..4a07884f98 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -627,10 +627,11 @@ void buf_freeall(buf_T *buf, int flags) */ if (buf == curbuf && !is_curbuf) return; - diff_buf_delete(buf); /* Can't use 'diff' for unloaded buffer. */ - /* Remove any ownsyntax, unless exiting. */ - if (firstwin != NULL && curwin->w_buffer == buf) + diff_buf_delete(buf); // Can't use 'diff' for unloaded buffer. + // Remove any ownsyntax, unless exiting. + if (curwin != NULL && curwin->w_buffer == buf) { reset_synblock(curwin); + } /* No folds in an empty buffer. */ FOR_ALL_TAB_WINDOWS(tp, win) { |