mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
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.
45e5fd135d
This commit is contained in:

committed by
Justin M. Keyes

parent
90f20bd7b1
commit
d0ff2000b2
@@ -12,6 +12,7 @@ typedef struct file_buffer buf_T; // Forward declaration
|
||||
// bufref_valid() only needs to check "buf" when the count differs.
|
||||
typedef struct {
|
||||
buf_T *br_buf;
|
||||
int br_fnum;
|
||||
int br_buf_free_count;
|
||||
} bufref_T;
|
||||
|
||||
|
Reference in New Issue
Block a user