aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2017-06-11 15:03:02 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-06-11 15:03:02 +0200
commitd0ff2000b2a639f3bb0f70e37104b561dab05562 (patch)
tree737835f61cc74bee9fa9594751e6db321bc9d591 /src/nvim/globals.h
parent90f20bd7b17a4c6889136008593312f8f8fe377b (diff)
downloadrneovim-d0ff2000b2a639f3bb0f70e37104b561dab05562.tar.gz
rneovim-d0ff2000b2a639f3bb0f70e37104b561dab05562.tar.bz2
rneovim-d0ff2000b2a639f3bb0f70e37104b561dab05562.zip
vim-patch:8.0.0607 (#6879)
Problem: When creating a bufref, then using :bwipe and :new it might get the same memory and bufref_valid() returns true. Solution: Add br_fnum to check the buffer number didn't change. https://github.com/vim/vim/commit/45e5fd135da5710f24a1acc142692f120f8b0b78
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index 785c9fade9..0e84900d48 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -568,7 +568,7 @@ EXTERN int keep_filetype INIT(= FALSE); /* value for did_filetype when
// When deleting the current buffer, another one must be loaded.
// If we know which one is preferred, au_new_curbuf is set to it.
-EXTERN bufref_T au_new_curbuf INIT(= { NULL, 0 });
+EXTERN bufref_T au_new_curbuf INIT(= { NULL, 0, 0 });
// When deleting a buffer/window and autocmd_busy is TRUE, do not free the
// buffer/window. but link it in the list starting with